I have the follow code. And what I like to have, is, the value from the select1 in the 2. Form, input "girl" value. But I do not know, how to do... I always have an empty value in the 2. form.
<?php
mysql_connect("localhost:8888", "root", "root") or die("Connection Failed");
mysql_select_db("usr_web202_9")or die("Connection Failed");
$query = "SELECT idgirls,name FROM girls";
$result = mysql_query($query);
?>
<form name="formName" method="post" action="">
<select name"select1" onchange="formName.submit()">
<?php
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
?>
<option value="<?php echo $line['idgirls'];?>"> <?php echo $line['name'];?> </option>
<?php
}
?>
</select>
</form>
</p>
<p> </p>
<p> </p>
<form action="upload.php" method="post" enctype="multipart/form-data">
<input type="file" name="userfile" class="fileUpload" multiple>
<input type="hidden" name='girl' value='<?php echo $_GET['select1'];?>' />
<button id="px-submit" type="submit">Upload</button>
<button id="px-clear" type="reset">Clear</button>
</form>
<script type="text/javascript">
jQuery(function($){
$('.fileUpload').fileUploader();
});
</script>
Hope, somebody can help me. It is my key to continue my project...