Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 77806

Re: Email form/PHP question

$
0
0

Add the phone, city and newsletter variables to the block of php code below (shown in red)

 

$envsender = "-f$mailto" ;

$fullname = isset($_POST['fullname']) ? $_POST['fullname'] : $_POST['name'] ;

$email = $_POST['email'] ;

$comments = $_POST['comments'] ;

$phone = $_POST['Phone'];

$city = $_POST['City'];

$newsletter = $_POST['radio'];

$http_referrer = getenv( "HTTP_REFERER" );

 

 

 

Then add them to the block of php code below (shown in red)

 

 

$messageproper =

"This message was sent from:" . $content_nl .

"$http_referrer" . $content_nl .

"------------------------------------------------------------" . $content_nl .

"Name of sender: $fullname" . $content_nl .

"Email of sender: $email" . $content_nl .

"Phone number of sender: $phone" . $content_nl .

"City of sender: $city" . $content_nl .

"Newsletter option of sender: $newsletter" . $content_nl .

"------------------------- COMMENTS -------------------------" . $content_nl . $content_nl .

wordwrap( $comments, MAX_LINE_LENGTH, $content_nl, true ) . $content_nl . $content_nl .

 

"------------------------------------------------------------" . $content_nl ;


Viewing all articles
Browse latest Browse all 77806

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>