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 Quote 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. Quote 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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.