I'm a php newbie and im making a small video upload site (very fun :). Anyway How would I do to keep the form inputs for the next part, where you select a file to upload.
<form action="upload.php" method="post">
<input type="hidden" name="action" value="step2">
Title: <input type="text" size="50" maxlength="50" value="" name="title" />
Description: <textarea name="description" style="width:278px; height:70px;"></textarea>
Tags: <input type="text" size="50" maxlength="100" value="" name="tags" />
<input type="submit" value="Next >" />
</form>
And when you press "Next" I want it to take the form values to the next form.
When you press next:
if ($_POST['action'] == 'step2') {
echo '<form action="upload.php" method="post" enctype="multipart/form-data">';
echo 'Chose file: <input type="file" name="userfile" />';
echo '</form>';
// insert everything to table 'videos' title, description on so on that i entered from last form
return false;
}