background preloader

HTML/CSS

Facebook Twitter

Web Authoring FAQ: HTML Forms (Web Design Group) English - Nederlands - FrançaisTable of Contents - Entire FAQ (HTML) - Entire FAQ (Text)Previous Section - Next Section This document answers questions asked frequently by web authors. While its focus is on HTML-related questions, this FAQ also answers some questions related to CSS, HTTP, JavaScript, server configuration, etc. This document is maintained by Darin McGrew <darin@htmlhelp.com> of the Web Design Group, and is posted regularly to the newsgroup comp.infosystems.www.authoring.html.

It was last updated on April 26, 2007. Section 10: HTML Forms 10.1. The basic syntax for a form is: <FORM ACTION="">... When the form is submitted, the form data is sent to the URL specified in the ACTION attribute. At least one submit button (i.e., an <INPUT TYPE="submit" ... > element), form data elements (e.g., <INPUT>, <TEXTAREA>, and <SELECT>) as needed, and additional markup (e.g., identifying data elements, presenting instructions) as needed. See also [Table of Contents] Customizing a Spry Menu Bar: planning. Customizing a Spry Menu Bar Inserting a Spry Menu Bar in Dreamweaver CS3 and CS4 takes only a few moments, but the default styles are uninspiring—and that's putting it mildly. However, with some careful planning and a reasonable understanding of CSS, you can turn a drab standard menu bar into something much more elegant relatively easily.

First, take a look at the default styles of horizontal and vertical Spry Menu Bars. By the end of this tutorial, you should have created a more elegant design. Styling both types of menu bar is very similar. This tutorial covers the following subjects: Planning your menu bar There are several things you need to decide before embarking on styling a Spry Menu Bar. How many top-level items will it have?

Choosing the number of items and the overall width is particularly important for a horizontal menu bar. Choosing the width and number of items is less critical for a vertical menu bar. Right. Next. How to insert input fields in a form with a new line button New To Web Development forum at WebmasterWorld. That is called a terinary (? Someone save me) operator or more commonly, a short-circuit evaluation. Instead of three or four lines, if (isset($data[$partname])) { $data[$partname] = $data[$partname]; } else { $data[$partname] = ''; } The short circuit evaluation does it in one line, with "?

" and ":" acting as the if/else. $data[$partname] = (isset($data[$partname]))? This bit of code may seem like a nonsensical snippet, why set a variable to itself? It's actually not necessary in most cases and other programming languages, but PHP will give you an "undefined index" warning if you just try to access $data[$partname] and it has not been set. More advanced PHP programmers will probably have a better solution.