Form Submit Question

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
blugraphic
Forum Newbie
Posts: 1
Joined: Mon Sep 19, 2011 2:48 pm

Form Submit Question

Post by blugraphic »

i have a form i want to submit. In this form i have the following :

<form id="wassim" action="process.php" method="get">

<select name="item">
<option>Paint</option>
<option>Brushes</option>
<option>Erasers</option>
</select>

<input name="quantity" type="text" />
<input type="submit" />

<span id="spanme">hello text</span>
</form>

when i submit the form i get the "quantity"& "item" values. However, i cant get the inner text of the span "spanme". Is there a way i can submit the value of the span with the form.
thanks
User avatar
flying_circus
Forum Regular
Posts: 732
Joined: Wed Mar 05, 2008 10:23 pm
Location: Sunriver, OR

Re: Form Submit Question

Post by flying_circus »

<span> is not a form imput element, so it is not passed when you submit your form.

If you want to pass text information, then do so using the input or textarea elements.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Form Submit Question

Post by VladSun »

Or hidden field.
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply