Jump to content

Using ECHO troubles on new server that used to be working....


phpjayx

Recommended Posts

I just switched all my files over to a new server... got everything working.....

Except the following, a very simple echo command to get a message over. My debugger shows after the previous page Submit button is sent, message1 is correctly written to.... I'm just confused why this isn't working. Is there an alternate way I could attempt to get message1 written into the field as a default value?

 

 

<input class="textfield_insert1" id="message1" type="text" placeholder="1st Message" value="<?php echo $message1?>">

The message is coming from a Posting of a previous setup page. My Charles debugger shows its still coming over to the file, I just can't seem to get access to it. I'll take a look at the global settings, that is not something I'm familiar with. Thanks

I looked on my old server and you are correct, the register_globals were turned ON....

 

I've been looking through that file and I'll admit I'm clueless on what to do.... I've tried some of the random comments in the referenced file... like using GET commands for my variables, still not able to access them...

 

The variable message1 is coming from a form on my Setup.php file, which uses .js with it to push the data over of my MessageCompiler.php file

 

Any suggestions how I grab these variables which were posted to the file... again my debugger says that the file MessageCompiler.php is receiving the variable "message1", but I just don't know how to use it...

Have a look at the method attribute in the form tag where message1 originates.

 

If the method is 'post' then you need

$message1 = $_POST['message1'];

 

if method is 'get' Then use $_GET instead of $_POST

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.