markrees Posted November 6, 2007 Share Posted November 6, 2007 I have a contact form in php format. The results are e-mailed to me. I'm having a problem getting an indication of whther the Subscribe field is checked or not checked. The other fields (text fields) come through on the e-mail fine. this is the part of the php that decides what gets displayed on the e-mail - however for the subscribe field (checkbox) it doesnt show if the checkbox is ticked or not - the e-mail just shows the word Suscribe: $message = " $todayis [EST] \n Attention: $attn \n Message: $notes \n From: $visitor ($visitormail)\n Postal Address: $postal \n Subscribe: $subscribe \n Additional Info : IP = $ip \n Browser Info: $httpagent \n Referral : $httpref \n thanks in advance if you can help on this! Quote Link to comment Share on other sites More sharing options...
ccrevcypsys Posted November 6, 2007 Share Posted November 6, 2007 can we see the rest of the code? i cant tell from just looking at that. like we need to see where this $subscribe comes from. so post the code and remember use the [code] [/code] Quote Link to comment Share on other sites More sharing options...
atlanta Posted November 6, 2007 Share Posted November 6, 2007 Something like this . if (isset($subscribe)) { $subscribe = "Subscribed"; } else { $subscribe = "Not Subscribed"; } put that after $subscribe = $_POST['subscribe']; only if that is how you have your code written post up your php code so i can tell you for sure, Quote Link to comment 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.