Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"GET" or "POST" 2

Status
Not open for further replies.

scheppsr77

Programmer
Jan 4, 2005
10
US
I have a search page that has a form that only works half way when I use "GET" and the other half only works when I use "POST"... does anyone have any ideas???

Thanks in advance
 
Less information can be submitted using the Get method than can be sent using the Post method. This might be the reason why your script is only partially working when using the Get method.

For other reasons why your script is only partially working, please provide more information about what is working and what is not. The actual code might help in identifying the cause of the problem as well. If you do post code, it might be a good idea to post both the code where you define your form and the code where you are submitting the form to.
 
It sounds like the page that processes the form data is using both Request.Form("item") and Request.QueryString("item") to read the form values. GET requires the user of Request.QueryString whereas POST requries the use of Request.Form.

I would suggest sticking to POST and Request.Form for all the form values.

Tony
_______________________________________________________________
 
Yes, after I went over my code about 10,000,000 times, I found that I was using half (post) and half (get) commands. I don't know what I was thinking. I guess I wasn't.

Thanks for the help.
 
You can use either GET or POST, but don't try to use both. Usually the GET method is used such as when you have a link on a page that the user can click. If the user needs to enter data, then POST is better using a form.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top