DrTrans Posted November 10, 2011 Share Posted November 10, 2011 please tell me what I'm doing wrong here... Ive messed with it for over an hour. <form name="controls" method="post" action="dashboard.php" > <ul class="p"> <li><a href="#" name="control" value="managep" onclick="document['controls'].submit(); ">text here</a></li> Basically when you click "text here" i want it to submit the form where i have an if statement in my php saying if( $control = "managep") { echo" You clicked the link $control"; } Quote Link to comment https://forums.phpfreaks.com/topic/250838-stupidity/ Share on other sites More sharing options...
haku Posted November 10, 2011 Share Posted November 10, 2011 <form name="controls" id="controls" method="post" action="dashboard.php" > Quote Link to comment https://forums.phpfreaks.com/topic/250838-stupidity/#findComment-1286939 Share on other sites More sharing options...
DrTrans Posted November 10, 2011 Author Share Posted November 10, 2011 still failing. i think its more in line with my <a href="#"> statement. I just can't figure it out Quote Link to comment https://forums.phpfreaks.com/topic/250838-stupidity/#findComment-1286940 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.