We accept safe and secure Credit Card and PayPal Payments.
 
Perl Scripts

All Count
Attachment Mailer
Perl Scripts Build A FAQ Plus
Perl Scripts Clock In Center
eBackup Automated
Easy Poll
eSurvey
Fetch a File
Form Maker
Mailing List Server
MySQL Mate
PDF Creation
QCart
Quick Fix
Quote of the day
Speed Search
Task Manager
Traffic Pack
Upload Plus
Upload Gold
Upload Pro
Website Manager

 
Free Perl Downloads

Free Perl Scripts Main Page
Free Perl Scripts 404 Alerter
AccessLog Viewer
Build A FAQ
PHP Scripts eBackup
Free PHP Scripts ErrorLog Viewer
eVars - Server Info
HT Pass Creator
Upload Lite
Website Manager

 
JavaScripts

Free Java Scripts Alert Boxes
Free JavaScripts Browser Sniffer
Check email
Generators
Slide Show
Sudoku
Window Maker
More...

 
Extra Utilities

ASP Scripts Ascii Codes
Free ASP Scripts Color Picker
Font Finder
HT Pass Creator
Meta Cloak
Meta Magic
Pano Zooms
SlideShow
Server Size

 
Online Tutorials

Free HTML Scripts Glossary
Free HTML Scripts HTML
JavaScript
MySQL
SSI
Build Traffic
Other

 
Miscellaneous

About Us
Graphics
Testimonials
Installations
Latest versions

 
Hawk Eye in Tennis

Should Hawk Eye replace linesmen and lineswomen at all tennis tournaments?







 
View all Polls

Run Polls on your site

Run your own Surveys

 
Store Download FAQs Contact Us Support Programming Policies  
JavaScripts :: Parsing Form Values

Requirements

The form's method must be set to POST, not GET nor PUT.

Limitations

Microsoft's Internet Explorer 6 and 7 limit the length of URLs to around 2080 characters. Internet Explorer 5 limited them to around 1024 characters. Mozilla Firefox has a much greater limit, we tested up to 6,500 characters with success. As such, this script is ideal for passing variables from one page to the next, or for parsing short forms.

Buy this code with sample forms for just $20

ParserJS is a JavaScript that will read an entire form, append the key/value pairs to a query string, then parse the key values pairs on the next page. The number and type of elements in your form and the data entered, does not matter. All form field types are supported (hidden, select-one, select-multiple, radio, checkbox, text, textarea, file). Lines breaks in textareas, quotes and metacharacters are all preserved and available on the next page. File upload fields show the value entered (file:C:\Documents and Settings\filename.gif), and not the file data.

Form fields do not have to be known or defined, ParserJS parses the entire form and is accessible via an array on the subsequent page.

Some example uses of displaying form data on the subsequent page:

<script>
<!--
if(FORM['age']){
	document.write("Your are aged: " + FORM['age']);
}

if(FORM['firstname']){
	document.getElementById('nameDiv').innerHTML = FORM['firstname'];
}

if(FORM['lastname']){
	document._form.lastname.value = FORM['lastname'];
}

// -->
</script>
Data storage
Select menus with multiple options selected will be stored in the FORM array as a comma separated list, as in : Option 2,Option 4
Regular select menus will store only the selected option in the FORM array
Radio buttons, which can only have one option selected, will generate a key/value pair for the selected option.
Checkboxes will generate key/value pairs if the checkbox is ticked.



Hidden fields, text fields, file upload fields and textareas will generate a key/value pair for each field. All will correctly encode and preserve all metacharacters and line breaks in the subsequent form. Metacharacters include: ', ", :, \, /, \n, ? etc.
Speed Search our site
Survey Software
Create unlimited web based surveys on your website from your website

Plesk Hosting
Linux servers with Plesk Control Panel, cgi-bin, crontab manager, Mysql, PHP and ASP.

Discounted Scripts
Subscribe to our periodial newsletter to receive special offers.

Bathroom Hygiene
How often do you thoroughly clean your bathroom?








View all Polls

Run Polls just like this one on your website!


About us | Contact us | Script FAQs | Script Support | Website Hosting | Our Policies | Store | Testimonials
Subscribers log in here. Subscribe to our periodical newsletter for special offers on commercial scripts, hosting, exciting business opportunities, and industry news and events. Our Mailing List Software is powered by Consolidator    
HTML Plain text
©1999 - 2015 All content Copyright PerlScriptsJavaScripts.com Proudly hosted by LinuxHostingPlans.com