cags Posted December 16, 2009 Share Posted December 16, 2009 <p>Town/Suburb: <input type="text" name="townsuburb" size="50" maxlength="50" /></p> ...and... && isset($_POST['suburbtown']) ... don't match. Link to comment https://forums.phpfreaks.com/topic/185203-unidentified-index-error-in-a-simple-form/page/2/#findComment-978434 Share on other sites More sharing options...
Calamity-Clare Posted December 16, 2009 Author Share Posted December 16, 2009 Argh! Nice catch! So much for my proof reading lol ... But, it didn't fix it. Just to throw an idea out there, could it have something to do with the fact that I have no exclaimation mark in my isset function? I was just reading an article on sending mail from a form that uses if (!isset($_REQUEST['email'])). However, it's not used in the book I'm referencing, so I guess it doesn't have to be used all the time. Link to comment https://forums.phpfreaks.com/topic/185203-unidentified-index-error-in-a-simple-form/page/2/#findComment-978447 Share on other sites More sharing options...
Calamity-Clare Posted December 16, 2009 Author Share Posted December 16, 2009 Nevermind, I just discovered that ! equals NOT. Yay for learning! Link to comment https://forums.phpfreaks.com/topic/185203-unidentified-index-error-in-a-simple-form/page/2/#findComment-978459 Share on other sites More sharing options...
Calamity-Clare Posted December 17, 2009 Author Share Posted December 17, 2009 Sigh! My test form works perfectly! I've even got it set up for sending email (which I'm very proud of myself for doing ) But! When I apply the exact same script to my attendance form (all I change is the fields to match the form) it still returns Notice: Undefined variable: name in /home/optionst/public_html/attendance.php on line 97 for all of the variables. Could be that I have to wait for the server to reset? Is that what could have been making it work last time? I'm sorry to keep on like this, but I just don't understand why it won't work! It's incredibly frustrating. Link to comment https://forums.phpfreaks.com/topic/185203-unidentified-index-error-in-a-simple-form/page/2/#findComment-979100 Share on other sites More sharing options...
cags Posted December 17, 2009 Share Posted December 17, 2009 It simply means that at some point you are using the variable $name when it might not have been assigned a value. Link to comment https://forums.phpfreaks.com/topic/185203-unidentified-index-error-in-a-simple-form/page/2/#findComment-979114 Share on other sites More sharing options...
Calamity-Clare Posted January 28, 2010 Author Share Posted January 28, 2010 Ok, I'm going to finally mark this as solved, for anyone who's looking through the forum. I never really figured out what the problem actually was, but the script now works perfectly & thanks to the people who replied, it really help me understand it! Link to comment https://forums.phpfreaks.com/topic/185203-unidentified-index-error-in-a-simple-form/page/2/#findComment-1002941 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.