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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.