Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    May 2004
    Posts
    391
    Thanks
    76
    Thanked 0 Times in 0 Posts

    submit form with link

    The below code submits the form but I'm not able to see the variable "prev" on the next page?? Are they being passed??

    <form method="POST" action="test2.php" name="theForm" >
    Record: <? echo "$currentkey of $getnumrows" ?>
    <input type="button" value="Prev" class="normal" name="prev" onClick="javascript:document.theForm.submit();">
    </form>
    Last edited by nikko50; 12-18-2004 at 09:24 PM.

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Inputs without a name are not passed... However, input type=submit or input type=image will pass their value without a name, and in the case of input type=image the x/y coordinates of where the image was clicked on will also be passed (this initself cause many problems for those unaware of this)... Solution: name your button or use a type=submit as you should be using...

    .....Willy


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •