chandler Posted May 25, 2010 Share Posted May 25, 2010 Hi, please help I am learning, got a bit stuck on this. $pickup = $_POST['pickup']; else if(trim($pickup) == '') { $error = '<div class="errormsg">Please include date of pick up.</div>'; $msg = "From : $name \r\nPhone number : $phone \r\ne-Mail : $email \r\nSubject : $subject \r\n\n" . "Message : \r\n$message \r\n\nPickup date date: $pickup"; <input class="plain" name="dc" value="<?=$pickup;?>" size="19"><a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fPopCalendar(document.demoform.dc);return false;" ><img name="popcal" align="absmiddle" src="calbtn.gif" width="34" height="22" border="0" alt=""></a> once the from is filled in I get all other fields in the email but this one, I think its something to do with the php not getting the info needed from the js Calendar?. Link to comment https://forums.phpfreaks.com/topic/202869-formto-email-help/ Share on other sites More sharing options...
Pikachu2000 Posted May 25, 2010 Share Posted May 25, 2010 The field is named "dc", therefore the index in the $_POST array will be $_POST['dc'], not $_POST['pickup'] Link to comment https://forums.phpfreaks.com/topic/202869-formto-email-help/#findComment-1063189 Share on other sites More sharing options...
chandler Posted May 25, 2010 Author Share Posted May 25, 2010 Thank you so much......easy when you know how:) Link to comment https://forums.phpfreaks.com/topic/202869-formto-email-help/#findComment-1063215 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.