I'm trying to use onClick to call a PHP script like I can with href.
This line works:
I what to do something like this:Code:Echo '<td width="100"><div align="center"><a href="olgnsr.php">Name Select</div></a></td>';
When I click on the button nothing happens. Is there anyway to get this button to run the olgnsr.php script?Code:Echo '<td width="100"><div align="center"><FORM><INPUT TYPE="button" VALUE="Name Select" onClick="olgnsr.php"></FORM></div></td>';
Thanks,
Jon
I was able to get what I wanted with this:
If anyone has some advice, please let me have it :-)Code:Echo '<td width="100"><div align="center"><form name="form1" method="post" action="olgnsr.php"><input type="submit" name="submit" value="Name Select"></form></div></td>';
Thanks,
Jon
onClick calls JavaScript. You can modify the contents of the page with JavaScript and use JavaScript to request information from a PHP page.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks