/    Sign up×
Community /Pin to ProfileBookmark

code that allows me to see form user input

Below is the code that I have but how do I create the file that allows me to SEE what the user input?

<html>
<body>

<form>
I have a bike:
<input type=”checkbox” name=”vehicle” value=”Bike”>
<br>
I have a car:
<input type=”checkbox” name=”vehicle” value=”Car”>
<br>
I have an airplane:
<input type=”checkbox” name=”vehicle” value=”Airplane”>
</form>

<form name=”input” action=”html_form_action.asp”
method=”get”>
Username:
<input type=”text” name=”user”>
<input type=”submit” value=”Submit”>
</form>

</body>
</html>

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@Declan1991Jun 28.2008 — That's what the html_form_action.asp page is for.
Copy linkTweet thisAlerts:
@sevenduckauthorJun 29.2008 — but I do not now what this file .asp is and what to do with it

how to do it, etc. Can you please explain it or direct me a resource that can

Thank you very much!

Christian Meister
Copy linkTweet thisAlerts:
@ray326Jul 01.2008 — Do you know how forms work? If not then maybe some time would be well spent on the w3schools site.

http://www.w3schools.com/
Copy linkTweet thisAlerts:
@Declan1991Jul 02.2008 — I was a little vague. You'll need a server side language to see what the user inputs. What happens is, when you click on the submit button of a form (and by the way, you have too many forms), it will redirect to whatever page is in the action attribute. Then that page processes that information, and stores it for you. The correct HTML would be<i>
</i>&lt;html&gt;
&lt;body&gt;

&lt;form name="input" action="html_form_action.asp"
method="get"&gt;
I have a bike:
&lt;input type="checkbox" name="vehicle" value="Bike"&gt;
&lt;br&gt;
I have a car:
&lt;input type="checkbox" name="vehicle" value="Car"&gt;
&lt;br&gt;
I have an airplane:
&lt;input type="checkbox" name="vehicle" value="Airplane"&gt;
Username:
&lt;input type="text" name="user"&gt;
&lt;input type="submit" value="Submit"&gt;
&lt;/form&gt;

&lt;/body&gt;
&lt;/html&gt;
If you submit that form, you'll see it'll go to html_form_action.asp?user=sometext& and if you have a checkbox clicked, they will be added onto the end of that string.
×

Success!

Help @sevenduck spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...