• 0

html forms


Question

Ok, I want to setup a form to like email it to my email address but not using code action="mailto:email.com", but just to email it to my address without using their email address! So I want like when they click submit to come to the page that says we'll reply shortly or something like that!

Thanks

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

<?php

if($action=="Join") {

if($rname && $nname && $pass && $age && $clan && $length && $icq && $email) {

$to = "";

$message = <<

Real name : $rname

Nickname : $nname

Password to use for clan site (if accepted) : $pass

Age : $age

Former clan experience : $clan

How long have you been playing UT? : $length

ICQ number : $icq

eMail address : $email

Other information : $other

EOT;

if(mail($to, "Clan membership request", $message, "From: $nname <$email>nReply-To: $email"))

printAlert("

Your eMail was sent to the [GiB] clan. You can expect to receive a reply soon.
");

else

printAlert("

Gah, eMail could not be sent
");

}

else

printAlert("

Oops, there are missing fields which you are required to fill in!

");

}

Here is a section of php code from www.utgib.tk

this what you would have to do :) partially, anyway..

Link to comment
Share on other sites

  • 0

We used to have an email form on neowin. I'll post the code when I get home tonight.

It's an html page with a form and a small perl program to interpret the form and send the email.

Link to comment
Share on other sites

  • 0

mail form

K, here it is.

Just put the .cgi file in your cgi-bin and chmod it 755

Put the html file wherever you want it.

check both files cause some neowin stuff needs to be changed to your domain.

Let me know if you need more help with it

Link to comment
Share on other sites

  • 0
Originally posted by Redmak

mail form

K, here it is.

Just put the .cgi file in your cgi-bin and chmod it 755

Put the html file wherever you want it.

check both files cause some neowin stuff needs to be changed to your domain.

Let me know if you need more help with it

thx Redmak - ill be chekin it out when i get back

;)

Link to comment
Share on other sites

  • 0
Originally posted by Extra Sports  

Redmak,

On which page did u use this code?

We don't use it at this time.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.