Hello :) I am in need of some help if someone would be so kind :)

Hi Everyone !!

I am having some problems and I am hoping someone can give me some ideas on what the problem is.

I have a form which I need the data sent to email, and I am just getting a blank page when the data is submitted. :o

Here is the form page. www.heavenlyherbalz.com/free/index.html and here is my PHP script/ page. /free/form_process.php

[php]<?php
/* set email recipient */
$myemail = "[email protected]";

/* Let’s Declare ID */
$name = $_POST[‘Name’];
$address = $_POST[‘Address’];
$apt = $_POST[‘apt’];
$city = $_POST[‘City’];
$state = $_POST[‘State’];
$zipcode = $_POST[‘zipcode’];
$phone = $_POST[‘phone’];
$age = $_POST[‘age’];
$currentsmoker = $_POST[‘currentsmoker’];
$tried_ecigs = $_POST[‘tried_cigs’];
$AutoShip = $_POST[‘AutoShip’];

/* set subject heading */
$subject =“New Monthly Program Entry Form”;

/* set the message */
$message = "$Name + $Address + $Apt + $City + $State + $zipcode + $phone + $age + $currentsmoker + $tried_cigs + $AutoShip

";

/* redirect this form after email sent */

(“location: http://www.heavenlyherbalz.com/index.html”);

?>
Click Here to Pay Using Paypal

[/php]

I must be missing something, any help would be greatly appreciated !!

Thank you,

John

This code doesn’t make sense:

[php]
(“location: http://www.heavenlyherbalz.com/index.html”);
[/php]

It should be a header function?

[php]
header(“location: http://www.heavenlyherbalz.com/index.html”);[/php]

Make sure that you have error_reporting set to E_ALL. Also since you get a blank page, check if errors are being sent to a log file. In your php.ini you would see two settings

display_errors = Off
log_errors = On
error_log = /path/to/php_errors.log

Then you would need to check the path of “error_log”

You are getting a blank form because you don’t appear to be sending any info…

You know that $Name & $name are not the same, yes?
here are a few little typo’s(?) that i picked out…

[php]$Name / $name
$Address / $address
$Apt / $apt
$City / $city
$State / $state
$tried_ecigs / $tried_cigs[/php]

Hope that helps,
Red :wink:

Sponsor our Newsletter | Privacy Policy | Terms of Service