View Single Post
  #3 (permalink)  
Old January 27th, 2013, 06:06 PM
Optimistic Optimistic is offline
Registered User
Points: 18, Level: 1
Points: 18, Level: 1 Points: 18, Level: 1 Points: 18, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jan 2013
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

Originally Posted by bitnap View Post
When a user has filled in a form, and presses submit, the information is sent to a web server. The server then uses a programming language to process the data the user entered in the form.

Languages typically used on the server include ASP.Net, PHP, Ruby, Java etc... ASP.Net files end with the .aspx file extension, php files end with the .php extension etc. is a domain name that was reserved for use in examples / samples that talk about code.

The action attribute of a form element indicates where the data from the form is sent to, so these code samples from that chapter are being sent to a fictional "example" server.

You can run HTML/XHTML files on your own machine without hosting, but if you want to run server-side code, then you would either need to purchase hosting OR you could setup a server on your desktop/laptop (but you can probably wait to do that until you get onto learning server-side code).

You can create the forms using this chapter. What it does not teach you is how to deal with the information that users have entered into the forms.

On the opening page of that chapter, it does explain that XHTML (and therefore also HTML) are only helpful to create the form to show the user - they do not help you process the data that the user has entered, and that you need to learn a server-side language in order to make use of the form data.

The wide variety of things you can do with the data from a form (and it wouldn't easily fit in a chapter or two of a book like this), so once you are familiar with HTML & CSS, you could take up / PHP / Ruby / Java / Node.js to learn more about that.

Hope that helps!
Thank you for helping me, that sucks that I need to take up a whole new language just to do that.
Reply With Quote