php textfield
Moderator: General Moderators
php textfield
How can I pass parameters from one form to another,I read them from a textfield.Thank you!
the first textfield will be in $_POST['textfield'] after you submit.
to show it in the second forms textfield use
to show it in the second forms textfield use
Code: Select all
<input type="text" value="<? echo $_POST['textfield']; ?>">Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
- n00b Saibot
- DevNet Resident
- Posts: 1452
- Joined: Fri Dec 24, 2004 2:59 am
- Location: Lucknow, UP, India
- Contact:
value will appear only after you post the first formsebs wrote:in first form :
<input name="cosa" type="text" class="ricerca" id="cosa" value="cerca" size="40" />
and in second:
<input type="text" value="<? echo $_POST['cosa']; ?>">
Do I have to write something else in the first one to work.Sorry I asked again.
*ahem* Sanitisation people!
Code: Select all
<input type="text" value="<? echo htmlentities($_POST['cosa']); ?>">- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
don't forget to avoid using short tags!
Code: Select all
<?php ?>
<input type="text" value="<?php echo htmlentities($_POST['cosa']); ?>">