spider35242 Posted November 5, 2012 Share Posted November 5, 2012 Hello: I am very new to programming and I am trying to create a program where I can enter fifteen different elements into this form and have the output be the fifteen elements I entered displayed in the order that which they were entered. <html> <head> <title>temp</title> </head> <body> <form action="temp.php" method="post"> <fieldset> Enter an integer <input type = "text" name + "temp0" size = 3 /><BR> Enter an integer <input type = "text" name + "temp1" size = 3 /><BR> Enter an integer <input type = "text" name + "temp2" size = 3 /><BR> Enter an integer <input type = "text" name + "temp3" size = 3 /><BR> Enter an integer <input type = "text" name + "temp4" size = 3 /><BR> Enter an integer <input type = "text" name + "temp5" size = 3 /><BR> Enter an integer <input type = "text" name + "temp6" size = 3 /><BR> Enter an integer <input type = "text" name + "temp7" size = 3 /><BR> Enter an integer <input type = "text" name + "temp8" size = 3 /><BR> Enter an integer <input type = "text" name + "temp9" size = 3 /><BR> Enter an integer <input type = "text" name + "temp10" size = 3 /><BR> Enter an integer <input type = "text" name + "temp11" size = 3 /><BR> Enter an integer <input type = "text" name + "temp12" size = 3 /><BR> Enter an integer <input type = "text" name + "temp13" size = 3 /><BR> Enter an integer <input type = "text" name + "temp14" size = 3 /><BR> <input type = "submit" vallue = "submit after entering 15 integers" /><br /> </fieldset> </form> </body> </html> What do I need to do? A helpful response would be greatly appreciated. Thank you much in advanced. Link to comment https://forums.phpfreaks.com/topic/270333-php-program-html-form-that-creates-an-array-containing-15-elements/ Share on other sites More sharing options...
Pikachu2000 Posted November 5, 2012 Share Posted November 5, 2012 Enter an integer <input type="text" name="temp[]" size="3"><br> Link to comment https://forums.phpfreaks.com/topic/270333-php-program-html-form-that-creates-an-array-containing-15-elements/#findComment-1390420 Share on other sites More sharing options...
spider35242 Posted November 5, 2012 Author Share Posted November 5, 2012 Thank you! Link to comment https://forums.phpfreaks.com/topic/270333-php-program-html-form-that-creates-an-array-containing-15-elements/#findComment-1390422 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.