|
Posted by The Numerator on 09/28/07 11:43
Hi, as you can see from the subject, I'm a newbie. Ok, let me get to
the core: there's this site called http://www.youaremighty.com/.
Suppose your name is Bill Gates. You type this onto your address bar:
http://bill.gates.youaremighty.com/. George Bush is
http://george.bush.youaremighty.com/. These pages dynamically makes a
flash file made personally for you. Try your name to find out what I
mean.
I wanted to make a PHP script where a use will type in their first name
and their last name and then the PHP script will do its thing and meta
refresh to the page. Here's the HTML form page:
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>Christ Warriors Online - Stuff - You Are Mighty</title>
<link rel="stylesheet" type="text/css" href="../styles/default.css">
</head>
<body>
<form action="you_are_mighty.php" name="mighty">
First Name: <input name="firstname" class="input" type="text"
size="20"><p>Last
Name: <input name="lastname" class="input" type="text" size="20"></p>
<p><input name="submit" class="input" type="submit"
value="Submit"></p>
</form>
</body>
</html>
That was the HTML file. The form asks for you_are_mighty.php, so here
it is:
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<?
$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];
?>
<meta http-equiv="refresh" content="5;URL=http://<? echo "$firstname";
?>.<? echo "$lastname"; ?>.youaremighty.com">
<title>Christ Warriors Online - Stuff - You Are Mighty</title>
<link rel="stylesheet" type="text/css" href="../styles/default.css">
</head>
<body>
<p>Processing information...</p>
</body>
</html>
The outcome is always that it will meta refresh to
http://..youaremight.com/, skipping over the echos that I placed. Maybe
it's a simple semicolon problem I overlooked, or its something major
when defining the variables. Help needed. Thanks!
Navigation:
[Reply to this message]
|