Hello-
I am new to PHP, but am trying to use it (and learn). Here is what i am trying to do:
I have created a form with two controls on it, (a text box and a submit button.) i also created a simple script which (supposedly) takes the variable and prints it to the screen. it doesn't do this. it just prints the line of code that is supposed to print the variable.
i have PHP4, which told me that vars_track defaults to on.
here is what i have:
<title>Damn i can't get this</title>
<body>
<form method="get" action="[location of script].php">
<input type="text" name="name">
<input type="submit">
</form>
</body>
here is the php code:
<? echo="your name is $name";?>
Is this corect? essentailly it is printing "<? echo="your name is $name";?>".
(BTW.. i tried printing all the markup with it as well, it did nothing.)
I'm trying to load the script off of my local drive, and this is where i have PHP installed as well. i am using PHPcoder as my interpreter.
Help please!
Pat