NickG21 Posted January 3, 2007 Share Posted January 3, 2007 hey everyone i am looking to process information through the use of an image used as a button. However, the function of if (isset($POST['subscribe'])) is not working. Is there a different call to see if an image was submitted instead of a button?thank you in advance Link to comment https://forums.phpfreaks.com/topic/32717-solved-posting-from-an-image/ Share on other sites More sharing options...
ober Posted January 3, 2007 Share Posted January 3, 2007 You need to put a javascript onClick event on a element surrounding the image with "document.submit()" in it. Link to comment https://forums.phpfreaks.com/topic/32717-solved-posting-from-an-image/#findComment-152289 Share on other sites More sharing options...
NickG21 Posted January 3, 2007 Author Share Posted January 3, 2007 thanks, i figured it out without javascript but that was definitely an option if i couldn't Link to comment https://forums.phpfreaks.com/topic/32717-solved-posting-from-an-image/#findComment-152291 Share on other sites More sharing options...
corbin Posted January 3, 2007 Share Posted January 3, 2007 Also, I'm not sure if it was a typo, but it should be $_POST Link to comment https://forums.phpfreaks.com/topic/32717-solved-posting-from-an-image/#findComment-152295 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.