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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie Form method "POST" queston

Status
Not open for further replies.

terror

Programmer
Aug 22, 2001
86
US
Hello all,
If I should be on some Newbie board so as not to annoy anyone, please redirect me where to go!

I am trying to search an Access database
I assume that in the html page the name of my textfield is is the variable I want to send to my ASP page so:
<FORM METHOD=POST NAME=&quot;test1&quot; ACTION=&quot;searchTest1a.asp&quot;>
Enter the wine to search for:<BR>
<INPUT TYPE=TEXT NAME=mySearch SIZE=30><BR>
<INPUT TYPE=SUBMIT VALUE=&quot;mySearch&quot; TITLE=&quot;Click to search wine&quot;>
</FORM>

the initial problem is that it does not find the asp page
I tried ACTION=&quot;but that does not work either. Is there something I am missing in my POST?
thanks
I've been terrorized by my own ineptness here
 
so where does it go after you hit submit? do you bring up another page, or does nothing happen after you hit submit?

it looks like your form code is correct... so you might want to check your html. If you have another form on there, make sure that it has a correct closing tag... that'll screw you up every time.

also - check your tables... if you're missing a table tag, not only will that screw up layout, sometimes it can muck with your forms as well.

hth
leo
 
I get an ie page message &quot;the page cannot be displayed&quot;
that is the only form on the html page. My table tags are okay. I'll have to screw around with it some more. I'm a big trial and error kind of person. I'll double check everything and try again, thanks
 
hi terror,

if you getting the message &quot;the page cannont be displayed&quot;,
it seems that is the problem with the asp code. I will suggest to double check the ASP part

hope this helps,
Chiu Chan
WebMaster & Software Engineer
emagine solutions, inc
cchan@emagine-solutions.com
 
thankyou Chiu Chan, I will double check it
 
You are not accessing your html page directly are you?
 
hi,

I'm going to assume that the page you're trying to access next is definately in the same folder as the original input page, yes? If not do that. Else, try hard coding the name of the wine on the receiving ASP page. For instance, where you would have:

varWine = request.form(&quot;mySearch&quot;)
(query goes here)

USE varWine = &quot;Red Wine&quot; (type in correct wine name here)
(query goes here)

then try to access only the recieving searchTest1a.asp page, bypassing the input page. Just to make sure you can hit it.

If that works but you still can't hit the second page even after you've placed them both in the same folder, I'm stumped.

c
 
Is IIS or PWS up and running? This is most likely the problem. Rob Marriott
rob@career-connections.net
 
thank you all, I have to resume this quest tomorrow, I've been thrown onto something else w/ a nasty deadline. I hope y'all will be around tomorrow.
thanks again

ps...
IIS is running
the stuff is all in the same folder
I still have to try Laidback313's suggestions
-Terror
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top