Jump to content

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


ethan6

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.

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.