The numerator 2007-06-11 08:25:21
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
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:
That was the HTML file. The form asks for you_are_mighty.php, so here
$firstname = $_POST['firstname']; $lastname = $_POST['lastname']; ?>
. echo "$lastname"; ?>.youaremighty.com”>
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!
The numerator 2007-06-11 08:25:23
I just learned from a previous topic that I have to use the PHP
function header(), but how?
Fiziwig 2007-06-11 08:25:25
You did not specifiy method, so it defaults to “get” not “post”, so
your variables are never set.
There is no such parameter as “class=” in the
Fiziwig 2007-06-11 08:25:27
You don’t have to use the header() function. It would work, but what
you have is fine as long as you correct the errors in your form entries
so that your variables are actually getting set.
The numerator 2007-06-11 08:25:33
The “class=input” atribute for the input is for CSS.
The numerator 2007-06-11 08:25:35
How could I forget! I forgot to specify the method. Thanks, though I
don’t think it will work.
Fiziwig 2007-06-11 08:25:39
Correction: The “class” attribute can be placed in the
but it refers back to a div class defined in the cascading style sheet,
and I didn’t see any reference to style sheets so I assumed that using
class in the
style sheet, I stand corrected. But hte other errors will cause you to
not get any data in the $_POST array.
The numerator 2007-06-11 08:56:04
Thanks! I got it working. It was the problem with the method that I
forgot to put in the HTML form. Thank you!
D 2007-06-11 08:56:37
Using meta-refresh is not the best way of doing things. header() or
Arjen 2007-06-11 09:25:32
options. Why rely on something that can de client side disabled ?
Just use the header(“Location: mysite.cow”) or mod_rewrite to redirect