Motas
-
Posts
7 -
Joined
-
Last visited
Never
Posts posted by Motas
-
-
well see i dont have MySQL set up thats probably a huge problem, im just learning PHP, and am VERY new. and thank you xD ;D
-
<html>
<head>
<title>Registration Complete!</title>
</head>
<body>
<?php
//calling registration
$name = $_REQUEST['name'];
$email = $_REQUEST['email'];
$race = $_REQUEST['race'];
//Not used: $_REQUEST['gender'], and
// $_REQUEST['submit']
// show output
echo "<p>Congratulations! You are now registered!<br \></p>";
// send email
$body.="<p>You will recieve an activation link in your email at $email.</p>\n";
<p>You will recieve an activation link in your email at <i>$email</i>.</p>\n";
mail($_POST['$email'],'Thank you for registering, <b>$name</b>', $body, 'From:accountcreation@exzyle.com');
?>
</body>
</html>
-
now everythign worked.....kinda... now i get this
You will recieve an activation link in your email at $email.
\n"; mail($_POST['$email'],'Thank you for registering, $name', $body, 'From:accountcreation@exzyle.com'); ?> -
im having a hell of a time trying to send an email after completing a form im having an error on line 18 and the script is as follows (also i get no email in header) help?
<html>
<head>
<title>Registration Complete!</title>
</head>
<body>
<?php
//calling registration
$name = $_REQUEST['name'];
$email = $_REQUEST['email'];
$race = $_REQUEST['race'];
//Not used: $_REQUEST['gender'], and
// $_REQUEST['submit']
// show output
echo "<p>Congratulations! You are now registered!<br \></p>
// send email
LINE 18////$body = "Thank you have registered with The Land of The Exzyled!\nSincerely,\nTheGods";
<p>You will recieve an activation link in your email at <i>$email</i>.</p>\n";
mail($_POST['$email'],'Thank you for registering, <b>$name</b>', $body, 'From:accountcreation@exzyle.com');
?>
</body>
</html>
-
haha, how simple :-\ thanks though ;D
-
these are my two scripts the second is which im having trouble iwth on line 15::
<html>
<head>
<title>Registration</title>
</head>
<body>
<!-- Character Registration Form start -->
<form action="handle_form.php" method="post">
<fieldset><legend>Enter Character Information</legend>
<p><b>Name:</b> <input type="text" name="name" size="20" maxlength="40"/></p>
<p><b>Email:</b> <input type="text" name="email" size="40" maxlength="60" /></p>
<p><b>Gender:</b> <input type="radio" name="gender" value="M" /> Male <input type="radio" name="gender"
value="F" />Female <p>
<p><b>Race:</b>
<select name="race">
<option value="Gnome">Gnome</option>
<option value="Elven">Elven</option>
<option value="Human">Human</option>
<option value="Alien">Alien</option>
<option value="Animal">Animal</option>
</select></p>
</fieldset>
<div align="center"><input type="submit"
name="submit" value="Register" /></div>
</form>
</body>
</html>
------------followed by------------
<html>
<head>
<title>Registration Complete!</title>
</head>
<body>
<?php
//calling registration
$name = $_REQUEST['name'];
$name = $_REQUEST['email'];
$name = $_REQUEST['race'];
//Not used: $_REQUEST['gender'], and
$_REQUEST['submit']
// show output
echo "<p>Thank you for registering, <b>$name</b><br \></p> <!-- problem this line -->
<p>You will recieve an activation link in your email at <i>$email</i>.</p>\n";
?>
</body>
</html>
- - -
help if you can, im just starting today and im lost x_x
I'm new... HELP!!!
in PHP Coding Help
Posted