Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As Filippo Toso said, you may include the HTML file in your code.php.</p> <p>Perhaps, if you don't want to have two files, you may make only one file and set the form to act like that:</p> <pre><code>&lt;form id="createNewGallery" name="newgallery" method="GET" action="./"&gt;&lt;p&gt;&lt;strong&gt;please choose the number of pictures you want to upload: &lt;/strong&gt; &lt;select name="numOfPictures" id="numOfPictures"&gt; &lt;option&gt;3&lt;/option&gt; &lt;option&gt;4&lt;/option&gt; &lt;option&gt;5&lt;/option&gt; &lt;option&gt;6&lt;/option&gt; &lt;option&gt;7&lt;/option&gt; &lt;option&gt;8&lt;/option&gt; &lt;option&gt;9&lt;/option&gt; &lt;option&gt;10&lt;/option&gt; &lt;/select&gt;&lt;/p&gt; &lt;input name="submitNumOfPictures" type="submit" /&gt; &lt;/form&gt; &lt;?php if (isset($_GET['numOfPictures'])){ $times = $_GET['numOfPictures']; for ($i = 1; $i &lt;= $times; $i++){ echo '&lt;br /&gt;select picture number '.$i.': &lt;br /&gt;'; echo '&lt;input name="file'.$i.'" type="file" /&gt;'; } echo '&lt;/br&gt;&lt;input name="submitFiles" type="submit" /&gt;'; } ?&gt; </code></pre> <p>(note the "action" of the form)</p> <p>This is, maybe, pointless, compared to the previous solution but if you don't want to have two files you may do that in once, so that once you submit you will get the results right after your form without needing any other page!</p> <p>edit: forgot to mention that I suppose your file is named "index.php". If not, just replace the "./" with the correct address!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload