Jump to content

I can't figure out the syntax error in the code


Bill41

Recommended Posts

This is the code:

<?php
$Fname = $_POST["Fname"];
if (!isset($_POST['SUBMIT'])) { // if page is not submitted to itself echo the form
?>
<html>
<body>

<head>
<title>Personal INFO</title>

</head>
<body bgcolor="#008080">
<h1><blink><font color="#FF0000"><strong>Naruto Biography Creation</strong></font></blink></h1>
<h3><font size="1" color="#0000FF">Please note, info with a (*) must be filled in!</h>

</font>

<form method="post" action="<?php echo $PHP_SELF;?>">
<p><font size="2"><b>*First Name:</b></font><input type="text" size="30"
maxlength="12" name="Fname"><br />
<br />
<font size="2"><b>*Last Name:</b></font><input type="text" size="30"
maxlength="36" name="Lname"><br />
<br />
<b><font size="2">*Gender:</font></b><br />
<input type="radio" value="Male"
name="Gender" style="font-weight: 700"><b><font size="2">Male</font>
</b><input type="radio" value="Female"
name="Gender" style="font-weight: 700"><b><font size="2">Female</font></b></p>
<p><b><font size="2">Background Info:</font></p>
<textarea rows="3" cols="33" name="Background INFO"
wrap="hard">Enter your Character's History</textarea><p><font size="2">Appearance:</font></p>
<p>
<textarea rows="3" cols="33" name="*Appearance"
wrap="hard">State how your character look</textarea></p>
<p><font size="2">Personality:</font><br/><span>
<textarea rows="3" cols="33" name="*Personality"
wrap="hard">Explain your Character's qualities, attitude, etc.</textarea></span></p>
<p><span><br /></span>
<font size="2">*Affiliation:</font><br />
 <select name="Affiliation" size="3" width="8">
<option value="None" selected>Select one</option>


<option value="Leaf">Leaf</option>
<option value="Sand">Sand</option>
<option value="Cloud">Cloud</option>
<option value="Rogue">Rogue</option>


</select><br />
<font size="2">*Rank:</font><br />
 <select name="Rank" size="3" width="8">
<option value="none" selected>Select one</option>


<option value="Gennin">Genin</option>
<option value="Chuunin">Chuunin</option>
<option value="Jounin">Jounin</option>
<option value="S class">S class</option>


</select>

</p>
<p>

<input type="submit" value="submit" name="submit"></p>
</form>

</body>
</html>
<?
} esle {
echo "Hello,".$Fname." ".Lname.".<br />";
}
?>

I get this all the time

Parse error: syntax error, unexpected $end in F:\wamp\www\index.php on line 78

I work on Wamp, and I am a beginner so I am totally lost

could anyone help please

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.