Welcome! Log In Create A New Profile

Advanced

Topic 4B

Posted by mauritz 
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
Topic 4B
July 29, 2009 10:22PM
All done!

I really enjoyed this topic, and I think it can help a lot of us for future development, but beyond the topic there are soooo much more you can validate (validate if a email address entered is actually an email address ect) but this is just the beginning smiling smiley
Re: Topic 4B
August 02, 2009 07:51PM
Yeh, it was a cool topic and is really just an intro to the wonderful world of data validation......
avatar Re: Topic 4B
August 03, 2009 08:07PM
Done with Topic 4B
Re: Topic 4B
August 11, 2009 04:01PM
Is it important to check user input on the server side with PHP too, when client side validation ( javascript ) is useful because it`s almost instantaneous and can alert the user to problem without making an unnecessary round -trip to the server ?
Re: Topic 4B
August 11, 2009 04:43PM
Yup , done this , completed !!!

smoking smiley When all else fails , read instructions grinning smiley
smiling smiley Reading is a course on it's own ! smiling smiley
avatar
Mac
Re: Topic 4B
August 12, 2009 10:03AM
Javascript or PHP and AJAX.
avatar Re: Topic 4B
August 12, 2009 12:41PM
Done with the handbook, going through the chapter in the manual now, but I got the principles down.

Remembering to define the variables now, so things are going much better smiling smiley

Chris
~~~~
"Cleverly disguised as a responsible adult."
Anonymous User
Re: Topic 4B
August 17, 2009 12:22PM
Topic completed.

Validation is really important. Regarding HTMLSpecialChars, I'm glad that it's possible to keep any html entered in a form from messing up a webpage...
avatar Re: Topic 4B
August 23, 2009 03:04PM
Complete 4B - very important to validate input - people LOVE trying to insert rubbish just for fun.
fcb
Re: Topic 4B
August 26, 2009 12:59PM
Done.

The counter ($counter) for validating inputs in 4B-1 can be risky if you have many inputs.

I used a boolean ($infocorrect) value which negates the "go-ahead" state if an error is detected.

<?php
.....
$infocorrect = true;

if (empty($firstname)) {
echo 'Please enter your first name.<br>';
$infocorrect = false;
}

...
if ($infocorrect) {
echo "Thank you for completing this survey $firstname.<br>";
...
}

?>


4B-2 - important!!
Re: Topic 4B
August 30, 2009 05:26PM
Done with 4B
Re: Topic 4B
September 03, 2009 11:59AM
Done4b-1 and 4b-2.
avatar Re: Topic 4B
September 15, 2009 01:23PM
Topic Completed .... I think that the method for prmitting some values ... is just what the doc called for.....smile
Anonymous User
Re: Topic 4B
September 20, 2009 12:54PM
Done with 4B. At least i learnt something new in this topic - HTMLSpecialChars!!!
avatar Re: Topic 4B
September 29, 2009 11:55AM
Done with 4B!

The HTMLSpecialChars function is cool...that is something to make a note about for future use..
avatar
Mac
Re: Topic 4B
September 29, 2009 05:37PM
Yeah - until you have to save ASCII characters to a database with the intention to search the database for such characters..... arggh - don't ask me to explain. You NEVER stop learning PHP. Fun.
Re: Topic 4B
October 02, 2009 09:34AM
Done!
Sorry, only registered users may post in this forum.

Click here to login