# Help convert my globals to $HTTP\_POST\_VARS

**URL:** <https://forum.kirupa.com/t/help-convert-my-globals-to-http-post-vars/189591>\
**Category:** Uncategorized\
**Created:** [June 4, 2006, 8:36am UTC](https://forum.kirupa.com/t/help-convert-my-globals-to-http-post-vars/189591 "2006-06-04T08:36:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![okcowt](https://avatars.discourse-cdn.com/v4/letter/o/ecb155/32.png) [@okcowt](https://forum.kirupa.com/u/okcowt)\
**Post date:** [June 4, 2006, 8:36am UTC](https://forum.kirupa.com/t/help-convert-my-globals-to-http-post-vars/189591/1 "2006-06-04T08:36:33Z")

</div>

So here is the issue i’m making this form with flash/php from a tutorial and it works on my server…but when I placed on my clients server it does not works…he tells me this:

[SIZE=1] One thing I’ve noticed - the variables in your PHP script are globals,  
but we don’t register globals because of the high security risk  
involved. So you’d have to use $HTTP\_POST\_VARS to extract your variables  
in the PHP script before you could use them. Perhaps the reason nothing  
is happening in your script is because you’re not using the correct  
variable names to extract your form data?

[SIZE=2]so here is my script…how would I format the parameters to [/SIZE][/SIZE][SIZE=1] $HTTP\_POST\_VARS [/SIZE][SIZE=1][SIZE=2]to work…thanks a ton for any help

[/SIZE][/SIZE][SIZE=1][SIZE=2]\<? [/SIZE][/SIZE]  
[SIZE=1][SIZE=2]  
[/SIZE][/SIZE][SIZE=1][SIZE=2]// Enter your contact email address here  
$adminaddress = " [myemail@myemail.com](mailto:myemail@myemail.com)";

// Enter the address of your website here include [http://www](http://www/).  
$siteaddress =“[http://www.awebsite.com](http://www.awebsite.com)”;

// Enter your company name or site name here  
$sitename = “The company name”;

$date = date(“m/d/Y H:i:s”);

if ($REMOTE\_ADDR == “”) $ip = “no ip”;  
else $ip = getHostByAddr($REMOTE\_ADDR);

if ($action != “”):  
mail("$adminaddress",“Website Info Request”,  
"A visitor at $sitename has left the following information

Name: $fname  
Company: $lname  
Email: $email  
Telephone: $telno

## The visitor commented:

$comments

## Logged Info :

Date/Time: $date",“FROM:$adminaddress”);

mail("$email",“Thank You for visiting $sitename”,  
"Hi $fname,

Thank you for your interest in $sitename!

Regards,  
$sitename  
$siteaddress",“FROM:$adminaddress”);

$sendresult = "Thank you. You will receive a confirmation email shortly. ";  
$send\_answer = “answer=”;  
$send\_answer .= rawurlencode($sendresult);  
echo “$send\_answer”;

endif;

?\>  
[/SIZE][/SIZE]
