FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Please Help!





jarred89
Hello,

I need this form done by tonight on my site but i need some help. Can someone out there please help me?

Cheers,
Jarred
hexkid
jarred89 wrote:
I need this form done by tonight on my site but i need some help. Can someone out there please help me?


Try the HTML Validator.
jarred89
I dont no how to code it to send somewhere i only no how to make the form in dreamweaver
hexkid
Here you go: a form done in 2 minutes
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <title>HELP</title>
</head>
<body>
  <form action="http://www.example.com/" method="post">
    <p><input type="submit"></p>
  </form>
</body>
</html>
jarred89
hexkid wrote:
Here you go: a form done in 2 minutes
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <title>HELP</title>
</head>
<body>
  <form action="http://www.example.com/" method="post">
    <p><input type="submit"></p>
  </form>
</body>
</html>


um ok.... WHats that?
hexkid
That is a form.
Just upload it to your site, and you're done. Unfortunately I can't upload it myself to your site, and my ESP (Extra Sensorial Perception) powers are at a all-time low. If it wasn't for that, maybe I could have done the form with exactly the fields you want, in exactly the layout you want, with the exact functionalities you want, with the exact error handling you want, ..., ..., ...


Please read How To Ask Questions The Smart Way before you reply. Thank you.
the zephyrus
A form that does what?
jarred89
My form will be sending to my email address. I have made the form in dreamweaver but could someone help me make it send to my email address.

Thanks
Jarred
hexkid
the zephyrus wrote:
A form that does what?
It's a form that does what jarred89 asked for Smile
hexkid
jarred89 wrote:
My form will be sending to my email address. I have made the form in dreamweaver but could someone help me make it send to my email address.


One question: do you have PHP installed/enabled in your site?


Do this:

a) set your form action to formmail.php and the method to POST
should be code, but I don't know how to color code sections - - - - - - - - - wrote:
<form action="formmail.php" method="post">
<!-- other form contents, including inputs, buttons, etc. -->
</form>


b) save this code as formmail.php (or some other name, as long as it's the same name as the one in the form action)
Code:
<?php
define('EMAIL_ADDRESS', 'jarred69@example.com');
define('EMAIL_SUBJECT', 'MAIL FROM WEB FORM');

$body = 'On ' . date('Y-m-d H:i:s') . " this data was used for email\n\n========\n\n";
$body .= print_r($_POST, true);

mail(EMAIL_ADDRESS, EMAIL_SUBJECT, $body);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <title>Thank you</title>
</head>
<body>
<p>Thank you for your email.</p>
<p>Return to the <a href="/">homepage</a>.</p>
</body>
</html>
Related topics
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.