Jump to content

[SOLVED] Set how many upload fields?


Mr Chris

Recommended Posts

Hello,

 

I was wondering if anyone could point me in th direction of a php script tutorial or website on the internet.

 

What I want to do is simple:

 

1) User enters in a texbox how many 'browse' buttons they want

2) Hits submit

3)The number of browse buttons they requested shows on the screen

 

Can anyone help?

 

Thank you

Link to comment
https://forums.phpfreaks.com/topic/149804-solved-set-how-many-upload-fields/
Share on other sites

Well, if you get the number they want, you can just do something like this...

 

<?php
$number = ''; //whatever number they want, I don't know how you're getting it
for($i = 0; $i <= $number; $i++)
{
echo '<input type="button" value="browse" /><br />';
}
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.