[thelist] passing data to an asp page
Tomas Kokoska
koksa.uh at seznam.cz
Tue Dec 9 05:45:42 CST 2003
i see no problem here.
(1) page with form:
<form method="POST"
onsubmit="this.action=this.sel.options(this.sel.selectedIndex).value;return
true;">
<input ... name="i1">
<input ... name="i2">
<input ... name="i3">
<select name="sel"><option value="health.asp">HEALTH<option
value="money.asp">MONEY[....]</select>
<input type="submit" value="Send me there">
</form>
(2) page ie. health.asp
<form ...>
<input ... name="i1" value="<%= request.form("i1") %>">
<input ... name="i2" value="<%= request.form("i2") %>">
<input ... name="i3" value="<%= request.form("i3") %>">
...
</form>
You can use this without change if your inputs are of these types: text,
hidden, password
minor changes must be done if you use radio, checkbox, select, or textarea,
but I think you can manage.
Feel free to ask again if you can´t.
tom
----- Original Message -----
From: "John Mitchell" <John at persol.net>
To: <thelist at lists.evolt.org>
Sent: Monday, December 08, 2003 9:43 PM
Subject: [thelist] passing data to an asp page
Hi there,
Please, I want to collect details from a form that a user fills in.
When the user fills in the form, depending on the value the user will
select from the menu box in the form, a corresponding page will be
loaded. Example: if the user selects HEALTH, a page called health.asp
will be loaded but the rest of the details already filled in (like,
name, address, etc) will be displayed on health.asp as well as
health.asp's own contents.
I have written couple of scripts to do this but there are just not
working.
Any help?
john
--
* * Please support the community that supports you. * *
http://evolt.org/help_support_evolt/
For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !
More information about the thelist
mailing list