Jump to content

help! so i moved to a new hosting service, but now my php form doesn't submit


Recommended Posts

Hi, I started a new site at iTronicsRepair.com, but now my php forms won't work :(

 

for example: old one is at http://myipodbroke.com/repair_info.php (works fine), new one is at http://itronicsrepair.com/repair_info.php (does not work-- it won't send the data through...)

 

any ideas?

 

thanks!

If I had to guess; register_globals?

 

You'll need to start using

 

$_POST['variable'];

 

Instead of

 

$variable

 

for things passed via the form.

 

if you wouldn't mind, could you explain this a bit more? why exactly do i need to be using global variables vs. not? (i think i do, but it's been a while since i wrote most of the code..)

It's not really a matter of global variables (the program variables you are using are global variables) vs something else. The problem is that register_globals magically populated the global/program variables from external data - see this link for more information that has been posted many times over and over - http://www.phpfreaks.com/forums/index.php/topic,285960.msg1356137.html#msg1356137

 

The code you linked to is using some $_POST and $_GET variables, but not for everything that is coming from your form. Since register_globals have been completely removed in php6, now is the time to start fixing your code.

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.