Hello
I have this line of VB.NET that redirects the user to a 'Thank you' page (thankyou.aspx) after submitting a contact form.
Dim target = String.Format("~/thankyou.aspx?yourname={0}", Name)
'Redirect user to thank you page
Response.Redirect(target, True)
The contact form itself has this:
<p><span>Name</span><input class="contact" type="text" name="your_name" /></p>
while in my aspx.vb code, I have:
Dim Name As String = "yourname"
Dim yourname As String = Request.Form("your_name")
Is this, therefore, correct?
Dim target = String.Format("~/thankyou.aspx?yourname={0}", Name)
I am not sure if it should be
("~/thankyou.aspx?yourname={0}", Name)
or
("~/thankyou.aspx?your_name={0}", Name)
And why this 'Name' at the end? Isn't that just a label?
Many thanks!