Jump to content

Email Form


uglyjay

Recommended Posts

Hello guys/gals,

 

I am stump!

 

I would like me mail form to only email the text field contents if data is entered in it.

 

I used this statement:

 

if ( isset($_POST['location']) ) {

$message .= 'Location' . $_POST['location'];

}

 

This works, but not as disired.  If text is not entered in the text field, the 'Location' Lable is still being displayed.

 

Is there a way I can make them visible only if data is entered in the text field?

 

Link to comment
https://forums.phpfreaks.com/topic/87765-email-form/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.