Re: On click button in php [message #180445 is a reply to message #180444] |
Sat, 16 February 2013 02:48 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 2/15/2013 9:15 PM, nag wrote:
> <form name="myform" action="details.php?id=<?php echo $id ?>" method=get>
> <li><a href="#">
> Enter Id:<br/><input type="text" value="Enter Id Code" name=id onfocus="if (this.value == 'Enter Id Code') {this.value = '';}"></a>
> <?php echo $id ?>
> </li>
> <li>
> <a href="#"><input type="button" onclick="<a href='details.php?$id=' ></a>" value="submit" style="margin-left:4.0em;"></a>
>
> Problem:
>
> The text box is accepting the id code and when I press enter it is activating the details.php but when I click the button (the submit button) nothing is happening.
>
> Please help me.
>
onclick executes javascript code on the client. PHP runs on the server
(and is NOT javascript).
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|