Page 1 of 1

Form Wont Submit

Posted: Fri Jul 21, 2006 1:03 pm
by psychotomus

Code: Select all

<form name="form1" method="post" action="">
<table width="100%"  border="1">
  <tr>
    <th width="27%" scope="col">Element Name</th>
    <th width="73%" scope="col"><div align="left">
      <input name="element_name" type="text" id="element_name" size="40" value="">
    </div></th>
  </tr>
  <tr>
    <th scope="col">Image Name</th>
    <th scope="col"><div align="left">
      <input name="element_image_path" type="text" id="element_image_path" size="40" value="">
    </div></th>
  </tr>
</table>
<input name="submit" type="button" id="submit" value="Add Element">
</form>

it wont submit when i press submit, any ideas?

Posted: Fri Jul 21, 2006 1:04 pm
by Luke
submit type is "button" it needs to be "submit"

Code: Select all

<input type="submit">

Posted: Fri Jul 21, 2006 1:33 pm
by psychotomus
thanks works.

Posted: Fri Jul 21, 2006 1:34 pm
by kbrown3074
your form has action=""...shouldnt that have the page you want to end up on?

Posted: Fri Jul 21, 2006 1:35 pm
by Luke
action="" works for me (if you want to post it to itself) I'm not 100% sure it works all the time though... I should research that.

Posted: Fri Jul 21, 2006 1:36 pm
by Christopher
kbrown3074 wrote:your form has action=""...shouldnt that have the page you want to end up on?
Yes it should specify the page -- and as I recall it does not work in Safari when it is blank.

Posted: Fri Jul 21, 2006 1:37 pm
by Luke
arborint wrote:Yes it should specify the page -- and as I recall it does not work in Safari when it is blank.
Well I guess that answers it :D