Jump to content

[SOLVED] document.name.submit() question


komquat

Recommended Posts

Why is this not working, I have this in another script and it works just fine.

<form method=POST name=view$ff_draft_team_name action='ff_view_roster.php'>
<input type=hidden name=view_roster_team value=$ff_draft_tag>
</form>
<a target= _blank href=javascript:document.view$ff_draft_team_name.submit();>$ff_draft_team_name</a></td>

Link to comment
https://forums.phpfreaks.com/topic/55671-solved-documentnamesubmit-question/
Share on other sites

try to put all your attrbuite values in quotes

<form method="POST" action="blahblah" ....
<a href="javascript:document.view$ff_draft_team_name.submit();" ...

 

Also, beside giving the form a name, give it an id too

<form id="formID" ....

 

after that, you can use document.getElementById() function

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.