Help - Search - Members - Calendar
Full Version: Passing parameters between HTML and ASP
HTMLHelp Forums > Programming > Server-side Scripting
Chards
Hi all, I have not long started coding in HTML and ASP so please be gentle with me!! blush.gif

I have written an HTML page where you can enter 8 lots of information (using the text box), I wish to obtain the data entered and pass this information into an ASP page.

So far I have not been able to do this, what do I need in my HTML to firstly recognise the parameters when attaching to the URL and secondly, how do I bring in these parameters in ASP?

Thanks in advance for any help. smile.gif

Chards
Darin McGrew
Please see the FAQ entry How do I use forms?
Chards
QUOTE(Darin McGrew @ Aug 7 2008, 04:12 PM) *

Please see the FAQ entry How do I use forms?

Thanks for that, it is now being displayed in the URL when calling the ASP script however it does not appear to be retrieving these values in the ASP script.

I am using the following simple ASP script to extract two of the fields:

QUOTE

<%
FirstName=Request.QueryString("FirstName")
Surname=Request.QueryString("Surname")
%>

Your firstname is = <%=FirstName%>
Your surname is = <%=Surname%>


This does not retrieve the data passed across, even though the URL shows as Tester.asp?FirstName=John&Surname=Doe

Any ideas?, your help is greatly appreciated.

Chards
Frederiek
I don't know ASP, but a quick search at Google on "retrieve form data in ASP" lead to eg. http://www.w3schools.com/ASP/asp_inputforms.asp.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.