Dynamic Subject Field

the mail() function

Moderators: macek, egami, gesf

Post Reply
User avatar
php-forum Active User
php-forum Active User
Posts: 359
Joined: Tue Feb 22, 2011 8:19 am
Location: Canada

Re: Dynamic Subject Field

Post by freshnet » Thu Mar 22, 2012 2:45 pm

If your field is called field10 you'll want something like this

Code: Select all

if (!isset($_POST['field10'])||$_POST['field10']=='')
{$subject = 'x';}
{$subject = $_POST[field10'];}

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests