View Single Post
Old 10-07-2012, 04:58 PM   PM User | #54
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,667
Thanks: 46
Thanked 456 Times in 444 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
Global vars are valid in the function that they are declared in. If the variable is in the top level of the script and you declare it a global in the function then it will still exist in the top level when you come back out of the function - see my previous example of globals.

As for the keyboard, if you have an ASDA near you they used to sell wired keyboards for £4. Not sure if they still do anymore, mine doesn't but still does the mice but their basic KB is now £7 iirc. Every store seems to vary though. I wouldn't bother with Tesco.. and I don't think Morrisons sell tech bits at all. I don't think Sainsburys sell anything useful unless its one of their larger stores.
__________________
Please don't be rude: Put your php code in [php][/php] tags. It is a sticky topic at the top of the forum and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote