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"; } 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" > 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 Link to comment https://forums.phpfreaks.com/topic/250838-stupidity/#findComment-1286940 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.