maybe... my problem is really not the code.
CHeck this out:
I got this pc in my job, i used to program php there, it was a client from an intranet. I used to upload all my php files to the server and run the php's from there (server). It works fine, so i i saw one of my pages on php and i have this:
Code: Select all
echo '<form name="form1" method="post" action="">';
echo '<input type="text" name="textfield">';
echo '<input type="submit" name="submit" value="submit">';
echo '</form>';
$x=$textfield; <----LOOK
echo '<br>';
echo $x; <----LOOKBUT.... i started 2 used my laptop to make php files, i have the apache server on it, and at the same time im client, i have to put the php files in to this directory C:\Program Files\...... Group\Apache\htdocs and they run perfectly... BUT i have this problem.....that same code makes me an ERROR:
when i use this :
$x=$textfield;
show me this:
Notice: Undefined variable: textfield in c:\program files\apache group\apache\htdocs\4\index.php on line 271
I saw the php.ini of my lapto to compare with the pc of my office to see any differencies, and it seems like its another version, i dunno, but the version in my laptop is php4.
Anyway, i change some things that look familiar... but still dont work... somebody have any idea?!