Cast off your old name! Your Jedi name is if (!($fname && $lname)) { $first_name = "Loser"; $last_name = "McSuck"; $planet = "Lame"; } else { $first_name = htmlspecialchars(strtoupper(substr($lname, 0, 3) . substr($fname, 0, 2))); $last_name = htmlspecialchars(strtoupper(substr($maiden, 0, 2) . substr($hometown, 0, 3))); $planet = htmlspecialchars($drug); } $jedi_name = "$first_name $last_name of the planet $planet!"; print "
$jedi_name
"; ?>
Put this on your web page by cutting and pasting the HTML below: