![]() |
|||||||||||||||||||||||||||||
Issue 3, Number 1, December 2010 This newsletter is shared with other clients or colleagues of GuyMercier.com to visually present possible communication options or explains common terms used in the creation of web products.
|
FormsForms are used to collect, receive, or send data. They are very useful. They can populate MySQL databases or retreive and search for information. They can also perform specific tasks such as calculation. The samples below uses Javascripts, PHP Scripts, Invisible Scripts, and work with their own specific CSS Style sheets. PHP Content Management Systems (CMS) can be created to give either the "webowner" or "approved user" access to specific files they can use to change the content of a particular web page. The script will verify the necessary connection requirements and verify if the user is approved or not. My Client page is a sample of a basic MySQL database with Invisible PHP scripts that verifies if the visitor has access. Try connecting to http://www.guymercier.com/clients/ Online registered users have access. The web uses a variety of scripts, CSS settings, and specific coding that needs to be entered within the <head> of the web page. Most Free web sites will not grant you access to make changes to the <head> but only to the <body> of the site. For more information see Web Basics in Issue 2. Date ScriptRadio Button ConfirmationDynamic Form SelectionSelection boxes can be used to display alternate forms by using dynamic content.
Dynamic Select ListsDOM allows creating new option elements from within scripts using the Option(caption[,value]) constructor which creates a new option instance which is inserted in the appropriate select control's options[] array. history.go[0]; can be used to update the window after element insertion. Note: Other control objects do not have instance constructors. They must be created with the more rudimentary document tree traversal / node creation technique offered by the DOM model.
This example illustrates passing multiple selected items from a select list to another select control. The onclick event passes only the control element ids. The add2list() function finds the controls and loops through the input list's options array looking for selected items. Selected items are added to the output list using the Option objectconstructor. The function also prevents duplicate output entries by checking the output list before addition. The takefromlist() function removes previously selected elements from the output list. Double clicking is also enabled. View this page's source for the table format Autoreply FormsThe form will reply with either an Error or thank you page.
EcommerceThese will load live samples. Shopping Cart
PayPalThe sample below will load the clients PayPal account info for the following products.
|
|
|||||||||||||||||||||||||||