Welcome! Log In Create A New Profile

Advanced

Start prac?

Posted by Mac 
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
avatar
Mac
Re: Start prac?
March 27, 2012 12:04PM
Admin uses the same page as students use to register a student.
Re: Start prac?
March 27, 2012 07:47PM
I have started and cannot say much yet - except that for me personally it is a good idea to not ask questions too quickly. When I struggle to find the answer, get frustrated, google and read up, I discover a lot more, than just asking and getting the answer.
Loving the project, because I know so little - and it is therefore motivational for me to carry on frowning and typing smiling smiley
Re: Start prac?
March 28, 2012 12:34PM
so we should just keep it as
Register a student?
because it is from the admins point of view
Re: Start prac?
March 28, 2012 12:56PM
Please guys correct me if im wrong.
The way i call each page is via this link
http://localhost/77592972/index.php?path=student

The query string path tells me which page to call.
avatar
Mac
Re: Start prac?
March 28, 2012 04:15PM
radhestringer72801093 Wrote:
-------------------------------------------------------
> so we should just keep it as
> Register a student?
> because it is from the admins point of view


Yes.
avatar
Mac
Re: Start prac?
March 28, 2012 04:20PM
77592972_innocent Wrote:
-------------------------------------------------------
> Please guys correct me if im wrong.
> The way i call each page is via this link
> http://localhost/77592972/index.php?path=studen
> t

>
> The query string path tells me which page to call.

Why? When a form with information is submitted, the form defines which page to go to. Same with updating information. When deleting you have options - use a form to delete or a link

Language: PHP
<a href=delete.php?sid=$sid&this=$that.   // clicking the link directs you to page, and going there you take with the $sid and $that variable, to be caught on the delete page with a $sid=$_GET[';sid';];
Re: Start prac?
March 29, 2012 10:35AM
I wanted all the calls to go via the index page, after the index page i have a bootstrap file which filter the input and call the necessary page based on the path.
To grab all data passed from one form to another i use this function func_get_args()
Re: Start prac?
March 29, 2012 12:22PM
Where admin can view add and delete
does the admin need to login or when clicked just go to that page?
avatar
Mac
Re: Start prac?
March 29, 2012 12:51PM
77592972_innocent Wrote:
-------------------------------------------------------
> I wanted all the calls to go via the index page,
> after the index page i have a bootstrap file which
> filter the input and call the necessary page based
> on the path.
> To grab all data passed from one form to another i
> use this function func_get_args()

OK did not think you were familiar with a bootstrapper.
avatar
Mac
Re: Start prac?
March 29, 2012 12:54PM
radhestringer72801093 Wrote:
-------------------------------------------------------
> Where admin can view add and delete
> does the admin need to login or when clicked just
> go to that page?

You can add a login but have it pre-filled in the form please. Imagine marking 1000 sites (for other modules as well) and every time you have to fill in your full id, email, logins and passwords etc etc smiling smiley So I generally discourage the "add-ons" type things. Security is important, but it is not difficult to implement code-wise. So JavaScript validation etc I discourage for this course because I am interested in your logic and the coding that goes with it.
Re: Start prac?
March 29, 2012 01:13PM
ah kk thank you smile
avatar
Mac
Re: Start prac?
March 29, 2012 02:29PM
I am closing this thread else it gets too long and I want you all to start descriptive threads that pinpoints the issue, to help other students.
Sorry, you can't reply to this topic. It has been closed.