JavaScript and client side scripting.
Moderator: General Moderators
-
psychotomus
- Forum Contributor
- Posts: 487
- Joined: Fri Jul 11, 2003 1:59 am
Post
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?
Last edited by
psychotomus on Fri Jul 21, 2006 1:05 pm, edited 1 time in total.
-
Luke
- The Ninja Space Mod
- Posts: 6424
- Joined: Fri Aug 05, 2005 1:53 pm
- Location: Paradise, CA
Post
by Luke »
submit type is "button" it needs to be "submit"
-
kbrown3074
- Forum Contributor
- Posts: 119
- Joined: Thu Jul 20, 2006 1:36 pm
Post
by kbrown3074 »
your form has action=""...shouldnt that have the page you want to end up on?
-
Luke
- The Ninja Space Mod
- Posts: 6424
- Joined: Fri Aug 05, 2005 1:53 pm
- Location: Paradise, CA
Post
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.
-
Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Post
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.
(#10850)
-
Luke
- The Ninja Space Mod
- Posts: 6424
- Joined: Fri Aug 05, 2005 1:53 pm
- Location: Paradise, CA
Post
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
