Jump to content

Motas

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Posts posted by Motas

  1. <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>
  2. 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>
  3. 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
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.