Jump to content

need help with php and html form


jeger003

Recommended Posts

hello,

im trying to have a from do a GET on the same page as it was submitted

 

the url is like this mysite.com/index.php?a=34&b=22

 

the form action="" is left blank but it doesn't display a=34b=22 it only displays index.php?informaitonfromform

 

which ends up sending the user to the index page and away from the index.php?a=34&b=22

 

<table width="287" border="1">
  <tr>
    <td width="277"><form id="form1" name="form1" method="GET" action="">
      <label>Zipcode:
      <input type="text" name="zipcode" id="zipcode" />
      </label>
        <input type="submit" name="submit" id="submit" value="Submit" />
    </form>
    </td>
  </tr>
</table>

 

how do i make the submitted form display on this page index.php?a=34&b=22?

Link to comment
Share on other sites

It didn't work. it continues to forwards me to index.php

 

I'm trying to figure out another way. is there a javascript that can display a textbox when a link is clicked?

 

like my users are sent a page with all the US states and then they click their states and are forwarded to zipcode.

 

i want a textbox to show under the state and they can enter the zipcode that way i can get both state and zipcode in one form

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.