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> Link to comment https://forums.phpfreaks.com/topic/238598-submitting-to-php-from-a-button/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.