# Strange issue sending variables to php

**URL:** <https://forum.kirupa.com/t/strange-issue-sending-variables-to-php/265314>\
**Category:** flash\
**Created:** [July 7, 2008, 5:23pm UTC](https://forum.kirupa.com/t/strange-issue-sending-variables-to-php/265314 "2008-07-07T17:23:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![goto](https://avatars.discourse-cdn.com/v4/letter/g/b4bc9f/32.png) [@goto](https://forum.kirupa.com/u/goto)\
**Post date:** [July 7, 2008, 5:23pm UTC](https://forum.kirupa.com/t/strange-issue-sending-variables-to-php/265314/1 "2008-07-07T17:23:47Z")

</div>

Hello!!  
I have an strange problem, and maybe you can help me to figure it out.  
I did a simple script to send (and load) variables to php for a mail contact form.  
It is working perfectly in my server, but it is for a client site. Once I sent him the files everything worked great except the contact form. I thought there was a problem with php on that server, an issue with the mail client, or something similar. However, the mail message is sent, but none of the variables (name, subject…) is received. I only get a blank message, with no sender, or subject… So, the problem must be sending the variables, but I have tried every method loadVars and sendAndLoad, loadVariables, and LoadVariablesNum unsuccesfully. \*\*The strange issue is, every script works on my server, but the exact same scripts dont work for my clients one, None of them.

\*\*Here are the scripts, simple

```php

$sendTo = "mail@mail.com";
$subject = "Contact: ".$_POST["vsubject"];
$headers = "From: ".$_POST["vname"]." <".$_POST["vmail"].">";
$message = $_POST["vname"]." <".$_POST["vmail"]."> want to contact you.
Subject: ".$_POST["vsubject"]."
Message: ".$_POST["vmessage"];
mail($sendTo, $subject, $message, $headers);

```

```auto

vars = new loadVars();
vars.vname = name.text;
vars.vmail = mail.text;
vars.vsubject = subject.text;
vars.vmessage = message.text;
vars.sendAndLoad("send.php",rvars,"POST");
...

```

Do you know what can be happening? As I said it is working fine on my server, and also a friends one, but doesnt where I need to.

Thanks!!

---

<div class="post-metadata">

**Author:** ![Anogar](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Anogar](https://forum.kirupa.com/u/Anogar)\
**Post date:** [July 7, 2008, 6:57pm UTC](https://forum.kirupa.com/t/strange-issue-sending-variables-to-php/265314/2 "2008-07-07T18:57:16Z")

</div>

Do you know the details of which version of PHP they’re running on their server?

---

<div class="post-metadata">

**Author:** ![goto](https://avatars.discourse-cdn.com/v4/letter/g/b4bc9f/32.png) [@goto](https://forum.kirupa.com/u/goto)\
**Post date:** [July 8, 2008, 12:51am UTC](https://forum.kirupa.com/t/strange-issue-sending-variables-to-php/265314/3 "2008-07-08T00:51:48Z")

</div>

> [@Anogar;2354821](#):
>
> Do you know the details of which version of PHP they’re running on their server?

No, But Ill ask now! 😃

---

<div class="post-metadata">

**Author:** ![goto](https://avatars.discourse-cdn.com/v4/letter/g/b4bc9f/32.png) [@goto](https://forum.kirupa.com/u/goto)\
**Post date:** [July 9, 2008, 1:21am UTC](https://forum.kirupa.com/t/strange-issue-sending-variables-to-php/265314/4 "2008-07-09T01:21:54Z")

</div>

hello,  
hey the PHP on the current server is version 4.0.6  
mmm, Im working on php 5, but for this script is there anything not working because of the version?  
Thanks
