movie-torrentz
New Member
once I have established the first empty input field I then want to give it the value of \[code\]$_POST['email'];\[/code\] by making the value of $key into a variable but how can I make the value of a variable into a new variable (if you see what I mean) I will try to demonstrate what I mean below: \[code\]$email = $_POST['email']; foreach( $_POST as $key=> $for ) { if($for=="") { // $ + the value of ($key) = $email; break; } }email: <input name="email"> a: <input type="text" name="a" value='http://stackoverflow.com/questions/14431664/<?php echo $a; ?>'> b: <input type="text" name="b" value='http://stackoverflow.com/questions/14431664/<?php echo $b; ?>'> c: <input type="text" name="c" value='http://stackoverflow.com/questions/14431664/<?php echo $c; ?>'> <input type="submit">\[/code\]