Transfer of elements between forms?
Moderator: General Moderators
Transfer of elements between forms?
Hi I'm trying to transfer elements between forms after submiting a form . I am tweaking code using PHP/HTML/javascript though still being a rookie am not sure if there is a command or common script available to do this ie. first form submits a text keyword input from user & I would like this to show up as a value in the following form on the next page I'm developing. I am wondering if anyone might be able to point me in the right direction if this is possible Please 
Re: Transfer of elements between forms?
It's quite an interesting problem you have here, but the way I think it could be follows:
First Form:
Second Form Code:
First Form:
Code: Select all
<form action="otherform.php" method="post">
<input type="text" name="input" size="20" />
</form>
Code: Select all
$input = $_POST['input'];
echo "<form action=' ' method=' '>";
echo "<input type='text' name='receive' value='". $input ."' />";
echo "</form>";
Re: Transfer of elements between forms?
Thanks very much, this seems the way to go using php scripting in the absense of any current command or general script (I found out this may be possible with javascript but still entails coding so no advantage I can see) 