Results 1 to 3 of 3

Thread: 2 forms on chrome

  1. #1
    Join Date
    Sep 2012

    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...
    <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();' />
                <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 />
                                <TD>Endereco :</TD>
                                    <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>

  2. #2
    Join Date
    Mar 2011
    The closing </form> tag for the first form (form2) is incorrect. That could be enough to cause problems.
    Rick Trethewey
    Rainbo Design

  3. #3
    Join Date
    Nov 2006
    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?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center