Hi there,
I have a problem and cannot find its way out... if you visit this link you will find a form which im trying to pass variable from three different pages. All the variable are transfer as i was testing the variable but it is not allowing me to send the mailing list as it is say that there is something missing without the variable name beside it. I would really appreciate someones help as it is very important to me to finish this job and this is the only think that is keeping me from finishing it.
The link of the website is:
http://miriamchristine.com/test/translator_signup.php
Please contact me as soon as you can
Regards
Claire
Passing variable problem checking is equal to false
Moderator: General Moderators
feyd | Please use
These are the variables im passing from the other two pages
Thanks again
Claire
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Oh sorry!! Thanks bdw for your reply the following is the code being used:Code: Select all
<?php
if($_POST['submitform']) {
$Title = $HTTP_POST_VARS['Title'];
$Surname = $HTTP_POST_VARS['Surname'];
$Name = $HTTP_POST_VARS['Name'];
$DOB = $HTTP_POST_VARS['DOB'];
$Telephone_Number = $HTTP_POST_VARS['Telephone_Number'];
$Mobile_Number = $HTTP_POST_VARS['Mobile_Number'];
$Email = $HTTP_POST_VARS['Email'];
$Availability = $HTTP_POST_VARS['Availability'];
$Av_wk_yes = $HTTP_POST_VARS['Av_wk_yes'];
$Av_wk_no = $HTTP_POST_VARS['Av_wk_no'];
$Av_hol_yes = $HTTP_POST_VARS['Av_hol_yes'];
$Av_hol_no = $HTTP_POST_VARS['Av_hol_no'];
$alt_email = $HTTP_POST_VARS['alt_email'];
$native_lang = $HTTP_POST_VARS['native_lang'];
$trans_lang = $HTTP_POST_VARS['trans_lang'];
$inter_lang = $HTTP_POST_VARS['inter_lang'];
$select_trans = $HTTP_POST_VARS['select_trans'];
$select_qual = $HTTP_POST_VARS['select_qual'];
$Comments_inter = $HTTP_POST_VARS['Comments_inter'];
$Company = $HTTP_POST_VARS['Company'];
$Email_Comp = $HTTP_POST_VARS['Email_Comp'];
$Company2 = $HTTP_POST_VARS['Company2'];
$Email_Comp2 = $HTTP_POST_VARS['Email_Comp2'];
$Notes = $HTTP_POST_VARS['Notes'];
// check required fields
$dcheck = explode(",",$require);
while(list($check) = each($dcheck)) {
if(!$$dcheck[$check]) {
$error .= "Missing $dcheck[$check]<br>";
}
}
// check email address
if ((!ereg(".+\@.+\..+", $Email)) || (!ereg("^[a-zA-Z0-9_@.-]+$", $Email))){
$error .= "Invalid email address<br>";}
// display errors
if($error) {
?>
<b>The following information is required</b><br />
<?php echo $error; ?></span><br />
<a href="#" onClick="history.go(-1)">Please correct before submitting</a>
<?php
}
else
{
$browser = $HTTP_USER_AGENT;
$ip = $REMOTE_ADDR;
// format message
$message = "Online-Form Response for $recipientname:
Title: $Title
Surname: $Surname
Name: $Name
DOB: $DOB
Telephone_Number: $Telephone_Number
Mobile_Number: $Mobile_Number
Email: $Email
Availability: $Availability
Available_weekends_Yes: $Av_wk_yes
Available_weekends_No: $Av_wk_no
Available_Holidays_Yes: $Av_hol_yes
Available_Holidays_No: $Av_hol_no
alt_email: $alt_email
native_lang: $native_lang
trans_lang: $trans_lang
inter_lang: $inter_lang
select_trans: $select_trans
select_qual: $select_qual
Comments_inter: $Comments_inter
Company: $Company
Email_Comp: $Email_Comp
Company2: $Company2
Email_Comp2: $Email_Comp2
Notes: $Notes
-----------------------------
Browser: $browser
User IP: $ip";
// send mail and print success message
mail($recipientemail,"$subject","$message","From: $Name <$Email>");
if($autoresponse == "yes") {
$autosubject = stripslashes($autosubject);
$automessage = stripslashes($automessage);
mail($Email,"$autosubject","$automessage","From: $recipientname <$recipientemail>");
}
echo "$thanks";
}
}
else {
?>
</font>
<form action="<?php echo $PHP_SELF; ?>" method="post" name="contactform3" id="contactform">
<font size="2" face="Verdana,Arial,Helvetica">
<input type="hidden" name="require" value="Title,Surname,Name,DOB,Telephone_Number,Email,Availability,native_lang,trans_lang,inter_lang,select_qual,Comments_inter,Company,Email_Comp,Company2,Email_Comp2,Notes" />These are the variables im passing from the other two pages
Code: Select all
<?php } ?>
<input name="Title" type="hidden" id="Title" value="<?php echo $_POST['Title']; ?>" />
<input name="Surname" type="hidden" id="Surname" value="<?php echo $_POST['Surname']; ?>" />
<input name="Name" type="hidden" id="Name" value="<?php echo $_POST['Name']; ?>" />
<input name="DOB" type="hidden" id="DOB" value="<?php echo $_POST['DOB']; ?>" />
<input name="Telephone_Number" type="hidden" id="Telephone_Number" value="<?php echo $_POST['Telephone_Number']; ?>" />
<input name="Mobile_Number" type="hidden" id="Mobile_Number" value="<?php echo $_POST['Mobile_Number']; ?>" />
<input name="Email" type="hidden" id="Email" value="<?php echo $_POST['$Email']; ?>" />
<input name="Availability" type="hidden" id="Availability" value="<?php echo $_POST['source1']; ?>" />
<input name="Av_wk_no" type="hidden" id="Av_wk_no" value="<?php echo $_POST['Av_wk_no']; ?>" />
<input name="Av_wk_yes" type="hidden" id="Av_wk_yes" value="<?php echo $_POST['Av_wk_yes']; ?>" />
<input name="Av_hol_yes" type="hidden" id="Av_hol_yes" value="<?php echo $_POST['Av_hol_yes']; ?>" />
<input name="Av_hol_no" type="hidden" id="Av_hol_no" value="<?php echo $_POST['Av_hol_no']; ?>" />
<input name="alt_email" type="hidden" id="alt_email" value="<?php echo $_POST['alt_email']; ?>" />
<input name="native_lang" type="hidden" id="native_lang" value="<?php echo $_POST['native_lang']; ?>">
<input name="trans_lang" type="hidden" id="trans_lang" value="<?php echo $_POST['trans_lang']; ?>">
<input name="inter_lang" type="hidden" id="inter_lang" value="<?php echo $_POST['inter_lang']; ?>">
<input name="select_trans" type="hidden" id="select_trans" value="<?php echo $_POST['select_trans']; ?>">
<input name="select_qual" type="hidden" id="select_qual" value="<?php echo $_POST['select_qual']; ?>">
<input name="Comments_inter" type="hidden" id="Comments_inter" value="<?php echo $_POST['Comments_inter']; ?>">
<?php echo $_POST['Title']; ?>
</form>Claire
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]