• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

[PHP] Problems transferring variables between two files

AncientPC

Golden Member
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?
 
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
 
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... 🙂 )
 
Back
Top