PHP form

cibma

New Member
Messages
1
Reaction score
0
Points
0
Does anyone gets PHP response form to work correctly? I'm wondering if I have to add some script to server that doesn't exist there. I trust my PHP scripts are ok
 

vishal

-::-X10 Guru-::-
Community Support
Messages
5,255
Reaction score
192
Points
63
PHP on X10 server works very well for me.Wht kind of scripts r u using
 

amplec

New Member
Messages
9
Reaction score
0
Points
0
I have got them without any problem. Actually, what script do you need to run?
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Does anyone gets PHP response form to work correctly? I'm wondering if I have to add some script to server that doesn't exist there. I trust my PHP scripts are ok

x10hosting has some PHP functions disabled for security reasons.

But some scripts work fine on a development machine (home) because the settings on those machine are extremely lax and they do not work on a secure setup.

If you could post the script in question, we could help you. Include any error messages you get and generally how your scripts fail on x10hosting.

But a small bet. Your script assumes register_globals is enabled.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Is there a work around for register_globals?

You assume it is off when you write the script.
The default value was changed to OFF in PHP 4.2 (around 2002).
The feature is deprecated in PHP 5.3 and totally removed in PHP 6.

If you have a script that relies on it, you have to go in and change it so it uses $_POST etc. It usually is not that hard to do. If you have form fields named 'name', 'address' etc, you just specifically use

if( isset( $_POST['name'] )){
$name = $_POST['name'] ;
}

if( isset( $_POST['address'] )){
$address = $_POST['address'] ;
}

etc.

instead of having $name and $address poplulated for you.
 
Last edited:
Top