Ajax contact form


#1

Hi,
i’ve found in internet this simple ajax contact form:

http://www.ajaxtutorial.net/index.php/ajax-contact-form/

i’ve followed the instructions and put on my webspace…
but seem not working…
can be a phpmail problem? or a PHP version issue?
i’m not an expert…

Thanks


#2

Well, what exactly is the problem? How is it not working? Are you not receiving the data collected on the form? Please explain the problem that you’re having.

http://WebsiteHacks.com
website development and computer help


#3

<? if(!isset($rnd) || !isset($name) || !isset($email) || !isset($subject) || !isset($body)) { showform(); } else { processform(); }Read Variables from outside PHP

:cool: openvein.org -//- One-time [color=#6600CC]$50.00 discount[/color] on [color=#0000CC]DreamHost[/color] plans: Use ATROPOS7


#4

The script seem to freeze when i press SUBMIT, you can find it here:

mail never reach the target box…


#5

Sorry,
i’m not sure i’ve understand what you mean…
can you explain?


#6

I think what he’s getting at is the use of register_globals, which is a PHP configuration setting that, if enabled, turns parameters passed to a PHP script into variables of the same name. On Dreamhost, if you’re using PHP5, which I assume you are, this setting is disabled.

What you want to do is to check $_GET for the parameters instead. In short, the way to do this is to replace all references to $rnd, $name, $email, etc. with $_GET[‘rnd’], $_GET[‘name’], $_GET[‘email’], etc. You will also want to delete this line completely: global $name, $email, $subject, $body;


#7

I’ve done what you said but not work too…
however i’ve found another one that seem work, so, thanks for your help… bye


#8

How about sharing what you found with us?


#9

Sure,
but is not in ajax:
http://www.myphpscripts.net/?sid=5
it works good in my page :smiley: