|
-
Aug 18th, 2003, 03:59 AM
#1
Thread Starter
Hyperactive Member
form variables - wired problem
hi guys... i am havin a wired problem.. i cant seem to read the submited variables... somettin.. simple as the code bleow doesnt work
Code:
<html>
<head>
<title>MYcolor </title>
</head>
<body>
<form action="check.php" method = "post">
<input type="text" name="mycolor" size="20" ></p>
<p><input type="submit" value="Submit" name="B1"></p>
</form>
</body>
<?php
echo("Your Fave color is $mycolor") ;
?>
-
Aug 18th, 2003, 05:16 AM
#2
You can't access submitted values this way anymore. See the second sticky post on top of the forum.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Aug 18th, 2003, 11:09 AM
#3
Frenzied Member
well you can if register_globals are ON. but that way is not reccomended anymore.
-
Aug 18th, 2003, 01:13 PM
#4
Thread Starter
Hyperactive Member
no kiddin!.. since when.. i guess my book is.. outdated 
recocmdend.. a good book btw..
-
Aug 18th, 2003, 01:54 PM
#5
Frenzied Member
since php 4.1 and yes all the books are out dated tha ttalke about 4.0.6
-
Aug 20th, 2003, 03:31 PM
#6
Stuck in the 80s
That's why I WOULDN'T recommend ANY books on PHP. It's a rapidly changing language.
Find a tutorial on the web that introduces you to PHP, and then get familiar with http://www.php.net/'s Manual. There's even a downloadable version.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|