Welcome! Log In Create A New Profile

Advanced

TASK 5B

Posted by Reinie 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
TASK 5B
April 18, 2007 11:51AM
Completed
Re: TASK 5B
April 22, 2007 04:26PM
Completed.

You need to query the $_COOKIE autoglobal as the $background variable is not automatically defined. This did the trick for me :-

isset ($_COOKIE['background']) ? $background = ($_COOKIE['background']) : $background="";

you can also use print_r ($_COOKIE); to display all the Cookie variables - oh, and try print_r ($_SERVER) , quite amazing how much info you can gather !

And dont forget the $color = $_GET['color']; / @extract($_GET); on your setcookie.php page.

My 2c !
Re: TASK 5B
April 22, 2007 04:28PM
P.S - found my cookie in Temporary Internet Files.

\documents and settings\user name\local settings\temporary internet files.
Re: TASK 5B
April 23, 2007 10:48PM
Completed
Re: TASK 5B
April 24, 2007 11:55AM
Complete
Re: TASK 5B
April 25, 2007 06:27AM
Completedsmile
Re: TASK 5B
April 29, 2007 08:49PM
Done
avatar Re: TASK 5B
May 01, 2007 08:27AM
Done without any serious hassles.

Thanks, Jclamp for your advice. It helped.

Cheers...

A Successful Nature Inspires Other People...
Re: TASK 5B
May 04, 2007 02:30PM
Task complete...I was having problems with my WAMP setup and windows in general. I had to reinstall Windows, Apache, MySQL and PHP....so apologies for being late with this task.

Had problems getting the script to work until I did this...thanks to jclamp smile

isset ($_COOKIE['background']) ? $background = ($_COOKIE['background']) : $background="";
avatar
Mac
Re: TASK 5B
May 04, 2007 03:41PM
I have indicated earlier that @extract is much easier than $_POST or $_GET, since it extracts all your variables send by a form at once..... you should make the donkey work as easy as you can - which implies having a connection script which you just include, or a script to extract, update, delete content from a db etc. You just define the variables for each app.

Some brainstorming is required to get it right.....but programming is 99% brainstorming.

Having functions which you re-use is time-saving. And functions is in your hands - you must decide what can be a function and what not....
avatar
Mac
Re: TASK 5B
May 04, 2007 03:44PM
WAMP....uuuugh. Aaaaghhhh. Uuuuurgh. XAMPP is by far the better route smiling smiley Least problems. But yes, it depends on what's on your computer. So don't feel bad, just remember XAMMP. BTW, on Vista you need to download a vista version since vista does not allow saving of files in the program files directory, which is the default XAMPP directory.
avatar
Mac
Re: TASK 5B
May 04, 2007 03:47PM
This prac thread is getting way too long. You are welcome to start new prac threads, on the proviso that you distinctly label the thread to your problem, starting with prac, e.g. "prac - database structure"
Re: TASK 5B
May 05, 2007 05:00PM
Done.
Re: TASK 5B
May 07, 2007 11:30PM
Completed
Re: TASK 5B
May 09, 2007 09:53PM
Dun dun!
Re: TASK 5B
May 12, 2007 05:50PM
Done
WjS
Re: TASK 5B
May 15, 2007 09:21AM
All is well.
Sorry, only registered users may post in this forum.

Click here to login