Jump to content

Get round register_globals


simonp

Recommended Posts

We trying to stop using register_globals but this code we have doesn't work without it. What would we need to change?

 

// only validate form when form is submitted
if(isset($submit_button)){
$error_msg='';
if($pagerName=='') {
	$error_msg.="<li>Please tell us your name</li>";
}
	if($pagerPhone=='') {
	$error_msg.="<li>Please tell us telephone number</li>";
}

 

Thanks!

 

Simon

Link to comment
https://forums.phpfreaks.com/topic/136679-get-round-register_globals/
Share on other sites

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.