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> Link to comment https://forums.phpfreaks.com/topic/55671-solved-documentnamesubmit-question/ 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(); Link to comment https://forums.phpfreaks.com/topic/55671-solved-documentnamesubmit-question/#findComment-275109 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! Link to comment https://forums.phpfreaks.com/topic/55671-solved-documentnamesubmit-question/#findComment-275115 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 Link to comment https://forums.phpfreaks.com/topic/55671-solved-documentnamesubmit-question/#findComment-275385 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.