2 forms on chrome
Hi guys, i don't if i'm but this in a right place but i think this is the better place for this. I think this could be quite simple but i just can figure out, i'm using two forms side by side with two different actions and it works right on IE but on chrome it doesn't work, the onchange event is not called and when i click on the submit button it submit the two forms...
<form name="form2" method="post" enctype="multipart/form-data" action="<?php updateFoto(); ?>">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
<input type="file" id="screenshot" name="UPLOAD" onchange='this.form2.submit();' />
<TABLE BORDER="1" CELLPADDING=3>
<form name="form1" method="post" enctype="multipart/form-data" action='<?php echo $_SERVER['PHP_SELF']; ?>'>
<input type="text" name="nome"
value="<?php if (!empty($name)) echo $name; ?>" /><br />
<input type="text" name="score"
value="<?php if (!empty($score)) echo $score; ?>" />
<TD COLSPAN=2 align="CENTER"><input type="submit" value="Incluir" name="submit" /></TD>
The closing </form> tag for the first form (form2) is incorrect. That could be enough to cause problems.
The second form should wrap the <table> not the other way around.
Besides why use a table just to align form elements when you can do it more elegantly using just labels, form fields and a dash of CSS?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)