|
hi, yes I tried the same code with diferents domais and is working, but with tem not, the account I have is small business this is the code that I use and works with other domains
<?php
include("global.inc.php");
$errors=0;
$error="The following errors occured while processing your form input.<ul>";
pt_register('POST','firstnameField');
pt_register('POST','lastnameField');
pt_register('POST','emailaddressField');
pt_register('POST','addressField');
pt_register('POST','cityField');
pt_register('POST','countryField');
pt_register('POST','stateorprovinceField');
pt_register('POST','zipcodeField');
pt_register('POST','telField');
pt_register('POST','messageField');
if($errors==1) echo $error;
else{
$where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF) ,"/"));
$message="
Enquiry Form:
First Name: ".$firstnameField."
Last Name: ".$lastnameField."
Email: ".$emailaddressField."
Address: ".$addressField."
City: ".$cityField."
Country: ".$countryField."
State or Province: ".$stateorprovinceField."
Zip Code: ".$zipcodeField."
Phone: ".$telField."
Message: ".$messageField."
";
$message = stripslashes($message);
mail("beautybizbrushes@yahoo.com","Website Form Reply ",$message,"From: www.beautybizsupplies.com");
}
?>
this php call this global
<?php
function pt_register()
{
$num_args = func_num_args();
$vars = array();
if ($num_args >= 2) {
$method = strtoupper(func_get_arg(0));
if (($method != 'SESSION') && ($method != 'GET') && ($method != 'POST') && ($method != 'SERVER') && ($method != 'COOKIE') && ($method != 'ENV')) {
die('The first argument of pt_register must be one of the following: GET, POST, SESSION, SERVER, COOKIE, or ENV');
}
$varname = "HTTP_{$method}_VARS";
global ${$varname};
for ($i = 1; $i < $num_args; $i++) {
$parameter = func_get_arg($i);
if (isset(${$varname}[$parameter])) {
global $$parameter;
$$parameter = ${$varname}[$parameter];
}
}
} else {
die('You must specify at least two arguments');
}
}
?>
|