|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I am jumping in deepend with my first php project. I am seeking for
a way to have echo('<a href=welcome.php target="right" . . >'); to execute right away rather than wait for the mouse click. [The mouse already clicked on the logon button, I don't want user to click something AGAIN!] |
|
#2
|
|||
|
|||
|
I finally found out how to do it myself. It is by using <form> and the onclick=submit() funciton. Make up a search.php, it there is no right frame it opens a new window.
<pre> <html> <head> </head> <body> <?php if (isset($_POST['aid'])): echo('value is here ' . $_POST['aid']); else: echo(' Choose your poisen! '); endif; ?> <!-- Begin processing the SELECT now. --> <form method="post" ACTION="search.php" target="right"> <select name="aid" size="1" onchange="submit()" > <option value='12'>Option one</option> <option value='13'>Option two</option> <option value='14'>Option three</option> <option value='15'>Option four</option> <option value='16'>Option five</option> <option value='17'>Option six</option> </select><br /> </form> </body> </html> </pre> I DID put in spaces for nice formatting twice,but this system ate it up. |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > instant execu of href, how to... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|