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...
Code:<div style='float:left'> <form name="form2" method="post" enctype="multipart/form-data" action="<?php updateFoto(); ?>"> <input type="hidden" name="MAX_FILE_SIZE" value="1000000" /> <img src="imagens/padrao.jpg"><br/> <input type="file" id="screenshot" name="UPLOAD" onchange='this.form2.submit();' /> <form/> </div> <div> <TABLE BORDER="1" CELLPADDING=3> <form name="form1" method="post" enctype="multipart/form-data" action='<?php echo $_SERVER['PHP_SELF']; ?>'> <TD>Nome:</TD> <TD> <input type="text" name="nome" value="<?php if (!empty($name)) echo $name; ?>" /><br /> </TD> <TR> <TD>Endereco :</TD> <TD> <input type="text" name="score" value="<?php if (!empty($score)) echo $score; ?>" /> </TD> </TR> <TR> <TD COLSPAN=2 align="CENTER"><input type="submit" value="Incluir" name="submit" /></TD> </TR> </form> </TABLE> </div>


Reply With Quote
Bookmarks