Jump to content

[SOLVED] Question about psasing variables between scripts.


bre

Recommended Posts

I have some php scripts that work on old server but need changes to work on new server. I use hosting and have VPS servers on both.

 

The script I pass variables to doesn't see them unless I use;

 

          $form_name = $_POST["form_name"]

 

I didn't have to do that on old server. Anyone know why I need it now everytime I pass variables to another script? I'm a novice at php scripting.

Link to comment
Share on other sites

On your other server they probably had magic_quotes_gpc off. This means that you don't have to define your post/get data with $_POST or $_GET. On your new server they have them on, meaning you do have to define them like you are.

 

In my opinion it is better to have to define them, that way you know exactly where the data is coming from.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.