Welcome! Log In Create A New Profile

Advanced

Validation

Posted by Shaun2010 
Announcements Last Post
Announcement : Programming Students at UNISA School of Computing 06/19/2019 02:01PM
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
avatar Validation
April 18, 2011 08:32AM
I have successfully been able to create a form (HTML) inserting editable student data using a query string (In a function). The problem I'm having is if the validation fails all my data in my query string disappears, then I get undefined indexes where the values where. Correct me if I'm wrong but I think the problem lies with my form action as it is "edit_student_details.php" where my query string for that specific student is completely different. Is there a way to perhaps refresh the page/disable the forms submit button if validation fails so it doesn't loose the query string? I hope I make sense lol tongue sticking out smiley

A word to the wise ain't necessary - it's the stupid ones that need the advice.
Student Number:72793775
avatar
Mac
Re: Validation
April 18, 2011 08:40AM
Quite correct - it does not make sense... smiling smiley

If you catch the variables right at the top of the page before you do the validation, then it remains available regardless the validation outcome.
avatar Re: Validation
April 18, 2011 08:46AM
Got it working smiling smiley My theory was right grinning smiley

A word to the wise ain't necessary - it's the stupid ones that need the advice.
Student Number:72793775
Sorry, only registered users may post in this forum.

Click here to login