GetDotted Domains

Viewing Thread:
"PHP Changes at Freeola"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Wed 28/07/04 at 22:38
Regular
Posts: 45
I received an email from a client saying they'd entered the minimum criteria on my booking form i.e. a contact number or email address but were receiving the following message:

Not transmitted
Error:
Please supply your Telephone number or Email address!

I had a look at the form using Dreamweaver plus tested the form online, I was baffled so decided to check the Freeola website to see if any changes had been made and was annoyed to find the following:

UPDATE 7/6/04

Following a security upgrade, a change has been made to our PHP configuration to switch register_globals OFF. This basically means that statements such as:


echo $my_variable_name;


will no longer function correctly. There is a simple resolution to this problem in the form of some code that should be inserted into the top of your page. Here are some examples:

If the variable you are trying to access is passed via the URL string:


$my_variable_name=$_GET["my_variable_name"];


If the variable you are trying to access is passed via a form post operation:


$my_variable_name=$_POST["my_variable_name"];


If the variable you are trying to access is a server environment variable:


$my_variable_name=$_SERVER["HTTP_HOST"];



The code in my form is:

if ($tel == "" && $email == "")
{
echo "Not transmitted";
echo "
Error:
Please supply your Telephone number or Email address!
Click on the BACK button on your browser to return to the form";
}
else
{
echo "Successfully transmitted

";
Thu 29/07/04 at 00:16
Regular
Posts: 45
I can't figure this out, what do I change here:

################# CHECKING IP ADRESS ###########
echo "";
?>
Wed 28/07/04 at 23:05
Regular
Posts: 45
I think I found a thread which helps:

http://ukchatforums.reserve.co.uk/display_messages. php?threadid=103196&forumid=206

remove spaces before php?

Thanks to Nimco "Hercules" for the following:

If you're feeling lazy (this way isn't as secure) then this method allows you to very easily modify an entire script to work with register_globals set to off. Just copy and paste at the top of each page:


// Apply to other arrays simply by replacing the first argument of the 'foreach()' function with the array name.

foreach($_GET as $a=>$b){$$a=$b;} // $_GET
foreach($_POST as $a=>$b){$$a=$b;} // $_POST

?>
Wed 28/07/04 at 22:40
Regular
Posts: 45
rest of message:

Can someone tell me how to change the code so it's now correct. I'm obviously furious if this is the reason for losing business, I operate 4 websites with Freeola and will write to them regarding this matter!
Wed 28/07/04 at 22:38
Regular
Posts: 45
I received an email from a client saying they'd entered the minimum criteria on my booking form i.e. a contact number or email address but were receiving the following message:

Not transmitted
Error:
Please supply your Telephone number or Email address!

I had a look at the form using Dreamweaver plus tested the form online, I was baffled so decided to check the Freeola website to see if any changes had been made and was annoyed to find the following:

UPDATE 7/6/04

Following a security upgrade, a change has been made to our PHP configuration to switch register_globals OFF. This basically means that statements such as:


echo $my_variable_name;


will no longer function correctly. There is a simple resolution to this problem in the form of some code that should be inserted into the top of your page. Here are some examples:

If the variable you are trying to access is passed via the URL string:


$my_variable_name=$_GET["my_variable_name"];


If the variable you are trying to access is passed via a form post operation:


$my_variable_name=$_POST["my_variable_name"];


If the variable you are trying to access is a server environment variable:


$my_variable_name=$_SERVER["HTTP_HOST"];



The code in my form is:

if ($tel == "" && $email == "")
{
echo "Not transmitted";
echo "
Error:
Please supply your Telephone number or Email address!
Click on the BACK button on your browser to return to the form";
}
else
{
echo "Successfully transmitted

";

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Excellent support service!
I have always found the support staff to provide an excellent service on every occasion I've called.
Ben
Brilliant service.
Love it, love it, love it!
Christopher

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre
Feedback Close Feedback

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.