komquat Posted June 15, 2007 Share Posted June 15, 2007 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> Quote Link to comment Share on other sites More sharing options...
emehrkay Posted June 15, 2007 Share Posted June 15, 2007 you dont have the name in quotes either way, do document.getElementById('formid').submit(); Quote Link to comment Share on other sites More sharing options...
komquat Posted June 15, 2007 Author Share Posted June 15, 2007 Thanks, but this is still not working. I had the same thing work in a script before, but now it is not working! Quote Link to comment Share on other sites More sharing options...
nogray Posted June 15, 2007 Share Posted June 15, 2007 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.