<!doctype html> <html> <head> <meta charset="utf-8"> <title>ssc prepartion</title> </head> <body><form action="ssc.php" method="post"> 1 <input name="name" type="text"> <input name="submit" type="submit"value="result"></form> </body> </html> // creating php file result. <?php $name=$_request["name"]; $text="user".$name; echo'<form action="ssc1.php" method="post">'; for($x =0; $x <= $name; $x++) { echo '<label for="'. $name .'">'.$x.'</label>'; echo '<input type="text" name="'.$text.'" ><br><br>'; } echo'<input type="submit" value="result">'; echo'</form>'; ?> so here trying create input fields making small php function. it's working , creates input fields problem after creating these input fields.
i can't figure out how give name or id these input fields , how values fields created.
my question how receive values these input fields after creating these all?
using php,on ssc1.php page can input values using $_post['name of input']
Comments
Post a Comment