Welcome! Log In Create A New Profile

Advanced

Section 4 - Working with HTML Forms

Posted by kiroant-77337840 
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
Re: Section 4 - Working with HTML Forms
July 28, 2013 09:22PM
Thanks Sipho

Finished with this section.
Re: Section 4 - Working with HTML Forms
July 28, 2013 09:26PM
Brilliant section to get you working, complete.
Re: Section 4 - Working with HTML Forms
July 31, 2013 12:43AM
Finished the section and on to the next....
Re: Section 4 - Working with HTML Forms
August 04, 2013 11:47AM
Hello everyone,

Thank you for the help! Got it working correctly! thumbs up

Finally done with this section!

Regards
Re: Section 4 - Working with HTML Forms
August 09, 2013 03:43PM
Felt like I wasn't really getting this section, so redid everything today.

Feeling a little more confident about forms.

Found this video on check boxes really helpful.

E
Re: Section 4 - Working with HTML Forms
August 12, 2013 10:57AM
Section 4 - Working with HTML Forms: Completed

Question:

In the text book Chapter 2, they make use of "sessions" . I would like to know if we should pay much attention to this ?
Re: Section 4 - Working with HTML Forms
August 13, 2013 11:34AM
Finished the section and completed all exercises.
Re: Section 4 - Working with HTML Forms
August 13, 2013 07:18PM
Hi shailen,

Good Question! I came across "sessions" within days of starting the course and haven't seen them since.
I think you should open a new topic "Chapter 2 Text book ". and ask the question again.

Regards C
Re: Section 4 - Working with HTML Forms
August 14, 2013 04:00PM
I've completed this section.

Came across an error on php4p6.html. I copied the PHP code in my text editor exactly as it stands in the tutorial and got an error, and the problem here was that the "==" sign had a space in between, and should not be "= =" as it stands there. I think this is something that requires fixing in the tutorial.

See below:

Language: PHP
$username = $_POST[';username';];   if ($username = = "letmein") { print ("Welcome back, friend!"); } else { print ("You';re not a member of this site"); }




thumbs up
avatar
Mac
Re: Section 4 - Working with HTML Forms
August 14, 2013 04:06PM
Ha! Never copy code smiling smiley And if you do, expect errors.
avatar
Mac
Re: Section 4 - Working with HTML Forms
August 14, 2013 04:10PM
shailen72991070 Wrote:
-------------------------------------------------------
> Section 4 - Working with HTML Forms: Completed
>
> Question:
>
> In the text book Chapter 2, they make use of
> "sessions" . I would like to know if we should pay
> much attention to this ?

A session prevents you from accessing other pages if you have not logged in. Of course, you can present a single page with no links, and after a login, redirect to another page that contains the menu. Or present all links but use a session to direct the user to the login page. Your choice. The portfolio leaves space for you to make use of sessions (advanced stuff that does not require a change in the db structure).
Re: Section 4 - Working with HTML Forms
August 14, 2013 04:22PM
Lesson learned!!
avatar Re: Section 4 - Working with HTML Forms
August 14, 2013 07:03PM
A session() is exactly as MAC explained and it makes sure that a user can be remembered across different web pages. Its simply the time spent at a particular site. You can store values with sessions, and these values will be available to all pages on that particular site. However when you close your browser, the sessions will end. thumbs up
Re: Section 4 - Working with HTML Forms
August 14, 2013 07:28PM
Thanks for that heads up Mac and Sipho.thumbs up
Re: Section 4 - Working with HTML Forms
August 29, 2013 09:51PM
This section was probably the most understable of the lot, although chapter 5 of the textbook gave a really good break down. the form element
<form action=""xxxx.php "method= "post">
</form>
the input element: <input type="text" name="name"
to display name typed: <? echo $_post ['name']';
to submit INPUT: <input type= "submit" name= "submit" value = "submit">

Tex tbook is more informative that the TUT. in my view.
Sorry, only registered users may post in this forum.

Click here to login