Welcome! Log In Create A New Profile

Advanced

Editing student info

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
Editing student info
May 02, 2012 02:00PM
Mac, this is me being LAZY yawning smiley
in student reg i made all the validating for the form
now is it necessary to do all that in the editing of a student? (done 50% of it so far)
and i dont see why an admin would make a name : 11111111 grinning smiley
avatar
Mac
Re: Editing student info
May 02, 2012 02:17PM
I am just as lazy which is why I do not want you to do validation like telephone numbers (it is not PHP anyway). And yes, I will enter "aaaaaaaaaaaa" to test smiling smiley

Strictly speaking you should of course do validation, but it is not required. I am interested in your logic and PHP code, not whether the postal code is correct and the ID has 13 numbers.
Re: Editing student info
May 02, 2012 03:51PM
It is why my validation is in the form of a function, so I can re-use it whenever the form is presented. grinning smiley

My actual pages are very short...but my functions page is quite long...

I only check if each field is filled in, and if the ID field is numeric. Other than that, you can fill in what you want grinning smiley
Sorry, you do not have permission to post/reply in this forum.