[PHP] Problems transferring variables between two files

AncientPC

Golden Member
Jan 15, 2001
1,369
0
0
Try to learn PHP and run this script locally on my computer:
http://uts.cc.utexas.edu/~wting/php/badwords_form.html

I know the code's fine because . . . it works.

I installed Apache 2.0 and PHP 4.2.3.

Code:
<?php phpinfo(); ?>

Works locally, as does regular PHP code and local variables, but when trying to pass variables using the method in the first link doesn't work. Using the form post / get post method both don't work.

Is it because I don't have MySQL installed?
 

JW310

Golden Member
Oct 30, 1999
1,582
0
0
What are you trying to do? I don't quite understand your question. You shouldn't need MySQL running to pass variables between pages.

JW
 

RSMemphis

Golden Member
Oct 6, 2001
1,521
0
0
In order to use variables sent to the other page via POST or GET, you need to access them the following way:

$_POST['variablename']
or
$_GET['variablename']

If that's not what you are asking for, I am sorry, but your post is really unclear. (i.e. you did not pass most of the variables to me... :) )