fife Posted June 6, 2011 Share Posted June 6, 2011 how do you submit a form from a button? I have the code below just to check my form is submitting and its not..... if(isset($_POST['clubinsert'])){ echo "It worked!"; } <form action="" method="POST" id="myclubfrm"> <input type="image" src="<?php if ($CP['logo']=='logo_default.jpg') { echo "../images/logo_default.jpg"; } else { echo "/members/images/{$CP['county']}/{$CP['logo']}"; } ?>" width="60" height="60" id="clubinsert" name="clubinsert" > <input name="club" type="hidden" value="<?php echo $CP['clubID'];?>"> <input name="pap" type="hidden" value="<?php echo $CP['permission'];?>"> </form> Quote Link to comment https://forums.phpfreaks.com/topic/238598-submitting-to-php-from-a-button/ 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.