php textfield
Posted: Wed Sep 21, 2005 1:51 am
How can I pass parameters from one form to another,I read them from a textfield.Thank you!
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<input type="text" value="<? echo $_POST['textfield']; ?>">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.
Code: Select all
<input type="text" value="<? echo htmlentities($_POST['cosa']); ?>">Code: Select all
<?php ?>
<input type="text" value="<?php echo htmlentities($_POST['cosa']); ?>">