Jump to content
Server Maintenance This Week. ×

email hidden field


This topic is 6574 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I have a form that has one message field and two hidden fields. I would like the hidden fields included in the message field on the process.php page so when I receive the email it has the hidden field info. I don't know how to go about this.

The hidden fields are client_id and client_name.

The process.php page is:

<?php

$mailto = '[email protected]' ;

$subject = 'Message/Comment' ;

$formurl = 'message.php' ;

$errorurl = 'error.php' ;

$thankyouurl = 'message_response.php' ;

$name = 'Company' ;

$email = $_POST['email'] ;

$message = $_POST['email_message_g'];

$dr_id = $_POST['dr_id'];

$web_title = $_POST['web_title'];

$http_referrer = getenv( 'HTTP_REFERER' );

if (!isset($_POST['email'])) {

header( 'Location: $formurl' );

exit ; }

$messageproper = $message;

mail($mailto, $subject, $messageproper, "From: "$name" <$email>nReply-To: "$name" <$email> nX-Mailer: chfeedback.php 2.01" );

header( "Location: $thankyouurl" );

exit ;

?>

Thanks in advance - Sam

Link to comment
Share on other sites

This topic is 6574 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.