Jump to content


Photo

Simple form script test doesn't send email...


  • Please log in to reply
3 replies to this topic

#1 Skeleten Neteleks

Skeleten Neteleks
  • Members
  • PipPipPip
  • Advanced Member
  • 51 posts

Posted 19 May 2006 - 01:35 PM

Hi,

I'm a jobless person who accidentally got a webdesign job with an employment agency. I kinda said that I would try to provide them with a free form instead of them having to pay someone like www.logiforms.com

I'm completely new to PHP, but managed to install a local server and create these files:

form.php
sendmail.php
thankyou.html

I kept getting errors when trying to run the script locally, so I uploaded to:

[a href=\"http://www.smartrecruituk.com/form.php\" target=\"_blank\"]http://www.smartrecruituk.com/form.php[/a]

It's just a test form. I uploaded it to the HTDOCS directory. There was a CGI directory but I think that this server is PHP enabled... hopefully.

I tried the script on the server and it successfully took me to the thankyou.html page but I never received an email.

I'm not sure why this script doesn't work and I have been unable to find a free web host that supports PHP and SMTP...

please help!!!!

#2 gijs25

gijs25
  • Members
  • Pip
  • Newbie
  • 9 posts
  • LocationNetherlands

Posted 19 May 2006 - 01:37 PM

well we can't do jack for you by just looking at the html of your files could you please post the code.

or create files with the following extention form.phps should show the code

Thanks

#3 Skeleten Neteleks

Skeleten Neteleks
  • Members
  • PipPipPip
  • Advanced Member
  • 51 posts

Posted 19 May 2006 - 05:49 PM

Form.php

<html>
<head></head>
<body>
<form method="post" action="sendmail.php">
Email: <input name="email" type="text" /><br />
Message:<br />
<textarea name="message" rows="15" cols="40">
</textarea><br />
<input type="submit" />
</form>
</body>
</html>

**edited to remove my email address from google!**

#4 Skeleten Neteleks

Skeleten Neteleks
  • Members
  • PipPipPip
  • Advanced Member
  • 51 posts

Posted 20 May 2006 - 09:03 PM

oh well..... nevermind then!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users