PDA

View Full Version : no define globalise causes a problem


sabret00the
01-08-2005, 10:50 AM
i have a form now when i have the define('NO_REGISTER_GLOBALS', 1);turned off it works fine, but when i turn it on the $message variable which i need the most stops working, i'm wondering if i can validate it through the NO_REGISTER_GLOBALS with a globalize($_POST, array(
'message' => STR,
));it don't seem that works, does anyone now a way to fix this, i didn't think that's particularly effect it :-S

Xenon
01-08-2005, 11:47 AM
are you sure you're submitting the form via post?

maybe you made a mistake in the html code and are now submitting the variable via get?

sabret00the
01-08-2005, 12:35 PM
yup
<form action="index.php?$session[sessionurl]do=process" method="post" name="vbform" onsubmit="return CheckCharacters()"

sabret00the
01-08-2005, 01:21 PM
yay got it working :D

Xenon
01-08-2005, 01:22 PM
congratz :)