Hey guys,
I am just trying to learn PHP. Most of my work is done in asp but I really want to learn. I have read that if you send a var in a url like this:
It is supposed to automatically make a variable called somevar on that page. When I try to use this variable i comes up like this:
Notice: Undefined variable: somevar in c:\inetpub\ on line 12
Is there something I need to do?
Here is my code:
Any ideas?
Thanx
I am just trying to learn PHP. Most of my work is done in asp but I really want to learn. I have read that if you send a var in a url like this:
It is supposed to automatically make a variable called somevar on that page. When I try to use this variable i comes up like this:
Notice: Undefined variable: somevar in c:\inetpub\ on line 12
Is there something I need to do?
Here is my code:
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>somepage</title>
</head>
<body>
<?php echo ($somevar); ?>
</body>
</html>
Any ideas?
Thanx