Super-Supra
(Banned)
- 4,111
Code:
<form method="POST" action="mailto:mangatsunny@hotmail.com">
On my contact form, it opens up in Outlook Express, is there anyway to make it send the email straight to my account?
<form method="POST" action="mailto:mangatsunny@hotmail.com">
I think you're misunderstanding what he wants... he wants an input box on the webpage where someone can type directly into it (much like a forum input box), then when they click "Submit" it'll be sent to Sunny's email account. By default, when you click on a mailto link, your browser will hand off the task to an outside email client... he wants it to send him an email from an input box, like if you send an email from GTP to another member.Originally posted by Jpec07
um, I'm no HTML buff, but when you click on that link it prompts the computer to open outlook so you can write and send an email (it's automatically addressed to the hotmail account in the coding). If that's your link, it won't open your personal inbox; how is a 60-character code supposed to know the user who is logged on to the computer that clicked it; let alone the computer that clicked it! Use some common sense here, Sunny...
Originally posted by Sage
I think you're misunderstanding what he wants... he wants an input box on the webpage where someone can type directly into it (much like a forum input box), then when they click "Submit" it'll be sent to Sunny's email account. By default, when you click on a mailto link, your browser will hand off the task to an outside email client... he wants it to send him an email from an input box, like if you send an email from GTP to another member.
<form action="mailto:mangatsunny@hotmail.com" method="post">
<!--
// Oh, so you want the code for this site? Stop right there, kid.
// Go learn HTML if you want a site. If I find that you have
// anything of mine without permission I'll have your site
// shut-down so fast you won't even be able to blink. Thank You!
//
// -Ian Geiger
-->
<head>
<title>.::Gran Turismo Source::.</title>
<STYLE>
<!--
A{text-decoration:none}
-->
</STYLE>
</head>
<body bgcolor="#555555" background="" text="white" link="#eeeeee" vlink="#eeeeee" alink="#eeeeee">
<FONT FACE="verdana" size="-2">
<CENTER>
<table width="90%" border="1" cellspacing="0" cellpadding="1" bgcolor="#555555" bordercolor="#555555">
<tr>
<td align="center">
<FONT FACE="verdana" size="-2">
<b><a href="main.html">HOME</a> | <a href="links.html">LINKS</a> | <a href="staff.html">STAFF</a> | <a href="affiliates.html">AFFILIATES</a> | <a href="mailto:kosmikfool19@hotmail.com">CONTACT</a></b>
</td>
</tr>
</table>
<br>
<br>
<CENTER>
<img src="gtsourcetitlebanner.gif" alt="Gran Turismo Source">
<br>
<br>
<br>
<!-------------------------------------------------------------------------------------------------------------------LEFT---->
<TABLE BORDER="0" ALIGN="left" WIDTH="130" cellpadding="3" cellspacing="1" bgcolor="black">
<tr bgcolor="#38395a"><td style="font-family: arial; font-size: 12px; color: #111111;">
<FONT FACE="VERDANA" COLOR="#000000" SIZE="-2">Menu</TD></TR>
<tr bgcolor="#38395a"><td style="font-family: arial; font-size: 12px; color: #111111;">
<font face="verdana" size="-2" color="black"><b>
<a href="main.html">Home</a><br>
<a href="staff.html">Staff</a><BR>
<a href="links.html">Links</a><BR>
<a href="affiliates.html">Affiliates</a>
</B></tr></td>
<tr bgcolor="#38395a"><td style="font-family: arial; font-size: 12px; color: #111111;">
<FONT FACE="VERDANA" COLOR="#000000" SIZE="-2">Gran Turismo</TD></TR>
<tr bgcolor="#38395a"><td style="font-family: arial; font-size: 12px; color: #111111;">
<font face="verdana" size="-2" color="black"><b>
<a href="gtmanu.html">Car Manufacturers</a><br>
<a href="gtreviews.html">Reviews</a><BR>
<a href="gtcheats.html">Cheats/Tips</a><BR>
<a href="gtscreens.html">Screenshots</a><BR>
</B></tr></td>
<tr bgcolor="#38395a"><td style="font-family: arial; font-size: 12px; color: #111111;">
<FONT FACE="VERDANA" COLOR="#000000" SIZE="-2">Gran Turismo 2</TD></TR>
<tr bgcolor="#38395a"><td style="font-family: arial; font-size: 12px; color: #111111;">
<font face="verdana" size="-2" color="black"><b>
<a href="gt2manu.html">Car Manufacturers</a><br>
<a href="gt2reviews.html">Reviews</a><BR>
<a href="gt2cheats.html">Cheats/Tips</a><BR>
<a href="gt2screens.html">Screenshots</a><BR>
</B></tr></td>
<tr bgcolor="#38395a"><td style="font-family: arial; font-size: 12px; color: #111111;">
<FONT FACE="VERDANA" COLOR="#000000" SIZE="-2">Gran Turismo 3 </TD></TR>
<tr bgcolor="#38395a"><td style="font-family: arial; font-size: 12px; color: #111111;">
<font face="verdana" size="-2" color="black"><b>
<a href="gt3manu.html">Car Manufacturers</a><br>
<a href="gt3reviews.html">Reviews</a><BR>
<a href="gt3cheats.html">Cheats/Tips</a><BR>
<a href="gt3screens.html">Screenshots</a><BR>
</B></tr></td>
<TABLE BORDER="0" ALIGN="CENTER" WIDTH="480" cellpadding="3" cellspacing="1" bgcolor="black">
<tr bgcolor="#38395a"><td style="font-family: arial; font-size: 12px; color: #000000;">
<font face="verdana" size="-2" color="white">
<table>
<tr>
<td bgcolor="#dddddd">
<FONT FACE="VERDANA" COLOR="#000000" SIZE="-2"><b>
Sign-Up
</td>
<tr><td colspan="3">
<FONT FACE="VERDANA" COLOR="#000000" SIZE="-2">
<!-- PUT STAFF SIGN-UP IN SPACE PROVIDED BELOW-USE AS MANY LINES AS NEEDED -->
Wanna be a part of the staff? Just fill out this form and you could be the next member of GTS. You must have HTML experience and have general knowledge of the GT series. Please note, I only take so many submissions at a time because of the trouble I have to go through to open these forms on my older computer. So DON'T SEND ME MULTIPLE SUBMISSIONS! It's a pain and I might ignore you.
<br>
<br>
<form action="mailto:kosmikfool19@hotmail.com" method="post">
<input type="text" name="var name" size="40" maxlength="80" value="Name">
<br><br>
<input type="text" name="var name" size="40" maxlength="80" value="Sex">
<br><br>
<input type="text" name="var name" size="40" maxlength="80" value="E-mail">
<br><br>
Additional Info:
<br>
<textarea name="variable name" rows="3" cols="40"></textarea>
<br><br>
Why do you want to be on the Staff?
<textarea name="variable name" rows="3" cols="40"></textarea>
<br>
<br>
<br><input type="submit" value="Submit"> <input type="reset" value="Reset">
</form>
<!-- END STAFF SIGN-UP HERE -->
</td></tr></table>
</td></table>
<br>
<br>
<br>
<br>
</td></tr></table>
</td></table>
</table>
</body>
</html>
/*
Generic Form Handler. Delivers all form fields via e-mail to specified
recipient. Form code by giles-guthrie.com
*/
// First build the text of the e-mail
$mailtext = "Here is the result of your form. It is delivered as Key (i.e. form field name";
$mailtext .= "and Value pairings.\n\n";
while(list($Key, $Val)= each($_POST))
{
if($Key == "Submit")
{
break;
}
$mailtext .= $Key." = ".$Val."\n";
}
// Now call the mail() function
$recipient = "surveys@mydomain.com";
$success = mail($recipient, "Output of Form ".$_ENV["HTTP_REFERER"], $mailtext);
if($success)
{
echo "Form Mail Sent";
}
else
{
echo "Mail error";
}
Originally posted by TurboSmoke
No Kosmik, you didnt do it using HTML, because it cant be done using HTML alone...
I tried this and it doesn't sto work, I think that this is because my website has banner ads on it and it recognises a .php page as a web page and ads the banner code to it. Would this be the cause of my problem?GilesGuthrieOK, you guys aren't getting the key point here:
You need to send the form to a form handler. There's no point simply putting a mailto: link in the action attribute as IE doesn't know what to go that. And the method="POST" doesn't mean "use e-mail".
OK then, here's a PHP form handler for you. Call it something like "formmailer.php", and then send your form to it with this tag:
<form action="formmailer.php" method="post">
PHP:/* Generic Form Handler. Delivers all form fields via e-mail to specified recipient. Form code by giles-guthrie.com */ // First build the text of the e-mail $mailtext = "Here is the result of your form. It is delivered as Key (i.e. form field name"; $mailtext .= "and Value pairings.\n\n"; while(list($Key, $Val)= each($_POST)) { if($Key == "Submit") { break; } $mailtext .= $Key." = ".$Val."\n"; } // Now call the mail() function $recipient = "surveys@mydomain.com"; $success = mail($recipient, "Output of Form ".$_ENV["HTTP_REFERER"], $mailtext); if($success) { echo "Form Mail Sent"; } else { echo "Mail error"; }
If you have any queries on what each part of the code does, I recommend you refer to the PHP manual at www.php.net.
BlakeI tried this and it doesn't sto work, I think that this is because my website has banner ads on it and it recognises a .php page as a web page and ads the banner code to it. Would this be the cause of my problem?
Also when you click submit the page with your php code in it loads and it is just the raw code underneath a banner ad.
Blake