Quick Email PHP Form Question

Quick Email PHP Form Question

Posted by: brighthearted
Posted on: 2007-05-30 14:16:00

Hi everyone,

I use this script on my other web host. But here on DreamHost it doesn't work. Any ideas why it wouldn't work. Perhaps it's a PHP4 vs PHP5 thing? How would I make it work?

Here is the form page code...

<form method="post" action="thankyou.php">

<input type="submit" value="Submit Request" /></li>

</form>




And this is the process page code...

<?php




mail ('bschiff55@gmail.com', 'subjectYo', 'this is the message', 'from: yoyo@schiffwebdesign.com');

?>


<h3>Thank you for sending us your comments.</h3>
[/code]






Any help will be GREATLY appreciated,
Thanks,
Brad

Edited by brighthearted on 05/30/07 02:24 PM (server time).

Re: Quick Email PHP Form Question

Posted by: scjessey
Posted on: 2007-05-30 14:33:00

You have not shown us the whole script, but I'm willing to bet your problem lies with register_globals. I recommend reading the following wiki articles:

1. PHP Form Processing
2. PHP mail()

Re: Quick Email PHP Form Question

Posted by: brighthearted
Posted on: 2007-05-30 14:46:00

Well it turns out my script worked out after all, it just took literally 10-15 minutes for the emails to actually be sent. Maybe the server I'm on was just overloaded at the moment.

Thanks.

Tags: php formdreamhostphp5php4web hostemail