|
-
Sep 13th, 2000, 08:47 AM
#1
Thread Starter
Hyperactive Member
Ok guys I am counting on you here. I need to pass the contents of a test box to an ASP where it can then query a database. I am trying to do this on a button click but having no success - the story so far:
<html>
<head>
<title>Search</title>
</head>
<body>
<form Name="InputForm" ACTION="default.asp?Customer=Customer" method="POST">
<div align="center"><center><p><font face="Tahoma">Please enter customer number for
search </font><input type="text" name="Customer" size="11" maxlength="8"
value> <input type="submit" value="Search" style="font-family: Tahoma"></p>
</center></div>
</form>
</body>
</html>
Should I be doing this in the form tag?
Should the parameter being passed be inside the quotes?
HELP!
-
Sep 13th, 2000, 09:01 AM
#2
Fanatic Member
Hi Bigley
First. get rid of the ?Customer=Customer in the form tag.
Second. In your default.asp, to get the value back into a variable do
strCustomer (can be anything you want) = Request.Form("Customer")
Hope this helps
Ian
Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!
-
Sep 13th, 2000, 11:44 PM
#3
Hyperactive Member
sample
To put it into code it would look like this...
default.asp -
Code:
<form action="submit.asp" method="post">
<input type="text" name="info"><br>
<input type="submit" value="Go">
</form>
submit.asp -
Code:
<%= Request.Form("info")%>
If you think education is expensive, try ignorance.
-
Sep 14th, 2000, 03:02 AM
#4
Thread Starter
Hyperactive Member
Thanks guys I have it working now.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|