I have a basic question about the action of a form.
Consider the code below, just ignore the syntax, if any.
<form action="demo_form.asp" method="get">
<a href="test.asp">Code testing</a>
First name: <input type="text" name="fname" /><br />
Last name: <input type="text" name="lname" /><br />
<button type="submit">Submit</button><br />
</form>
Demo_form.asp is called when the form is submitted, and I can process the variables in the form as shown below in demo_form.asp,
request.GET('fname')
How to handle variables in the form when test.asp is called via HREF..Can I use the same GET or POST method?
source
share