Forms

warning: Creating default object from empty value in /home/coredogs/public_html/modules/taxonomy/taxonomy.pages.inc on line 33.

Focus

You’ll learn how to use focus() to improve a page’s usability.

Magic quotes and strings

See more about:

In this lesson, you learn:

  • That PHP’s magic quotes feature adds extra backslashes to text.
  • How to use the stripslashes() function to fix the problem.

Improving validation

See more about:

Learn how to do a sequence of checks on a value passed to a PHP page.

Basic server-side validation

See more about:

Topics covered:

  • Understand why you need server-side and client-side validation.
  • Know how to check whether a value sent to the server is a valid number.

Client-side validation

Learn:

  • How to get form data into JavaScript variables.
  • How to check that data for errors.
  • How to report errors to the user.

Saving form data to a file

See more about:

Learn:

  • How to append form data to a file.
  • How to read back data from the file.
  • Know how to do some basic security stuff.

Send form data by email

See more about:

Learn:

  • How to use the <textarea> tag.
  • How to use PHP’s mail function to send an email message.

Form data in PHP

See more about:

Learn:

  • How PHP fetches form data.
  • How to fetch data from post and get forms.

Forms in HTML

See more about:

In this lesson, you learn that:

  • Browsers send form data to Web servers along with URLs.
  • get attaches form data to a URL. post puts it in a separate HTTP header.
  • URL encoding handles special characters in URLs.
  • The basic attributes of <form> are action and method.
  • The basic attributes of <input> are type, name, and size.
  • The basic attribute of <button> is type.

Lessons

How to...


Dogs