Jump to content

I'm New and im stuck


Motas

Recommended Posts

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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.