Jump to content

submitting to php from a button


fife

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.