Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
Thread: Very noobish problem...
06-10-2005, 12:42 AM #1
Very noobish problem...
I got a book about PHP5, Apache, and MySQL. I'm currently in the PHP section and am having some troubles...
The book has examples of what to write to make stuff work, and it isn't working for me...
I have two pages and I'm not sure exactly what is going wrong but this is the error I get.
Parse error: syntax error, unexpected T_VARIABLE in C:\xampplite\test\moviesite.php on line 3
Here's the code to my two pages.
<html> <head> <title>Find my Favorite Movie!</title> </head> <body> <?php echo "<a href='moviesite.php?favmovie=Night of the Living Dead'>"; echo "Click here to see information about my favorite movie!"; echo "</a>"; ?> </body> </html>
<html> <head> <title>My Movie Site - <?php echo_$REQUEST['favmovie']; ?></title> </head> <body> <?php echo "My favorite movie is "; echo $_REQUEST['favmovie']; echo "<br>"; $movierate = 5; echo "My movie rating for this movie is: "; echo $movierate; ?> </body> </html>
I got it, I had my _ before the $ not after it!
06-10-2005, 12:45 AM #2
Change _$REQUEST to $_GET
06-10-2005, 01:07 AM #3
Naw, it's ok. The book is just teaching me basic things right now, so those files are very different now and still work fine.