WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : Autofill HTML forms with data lock.
Categories : HTML, Java Script, Form Processing, Beginner Guides
Chetankumar Akarte
Date : Nov 23rd 2006
Grade : 3 of 5 (graded 8 times)
Viewed : 24979
File : 4539.zip
Images : Image 1 , Image 2
Search : More code by Chetankumar Akarte
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
Like this code?
Show the author your appreciation.
 

This simple script tell the way to Auto fill Html Forms...
it copy data of one field to other and also lock the data

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<script language="JavaScript">
        function useBillInfo(form)
        {
                var idx;
                {
                        form.ShipTo_Name_First.value= form.BillTo_Name_First.value;
                        form.ShipTo_Name_Last.value = form.BillTo_Name_Last.value;
                        form.ShipTo_Address.value = form.BillTo_Address.value;
                        form.ShipTo_City.value = form.BillTo_City.value;
                                this.form['ShipTo_Name_First'].disabled=true;
                                this.form['ShipTo_Name_Last'].disabled=true;
                                this.form['ShipTo_Address'].disabled=true;
                                this.form['ShipTo_City'].disabled=true;
                       
                }
        }
                function UNuseBillInfo(form)
        {
                var idx;
                {
                        form.ShipTo_Name_First.value= '';
                        form.ShipTo_Name_Last.value = '';
                        form.ShipTo_Address.value = '';
                        form.ShipTo_City.value = '';
                        this.form['ShipTo_Name_First'].disabled=false;
                                this.form['ShipTo_Name_Last'].disabled=false;
                                this.form['ShipTo_Address'].disabled=false;
                                this.form['ShipTo_City'].disabled=false;                       
                }
        }
</script>
<html>
<head>
<title>Autofill Form</title>
</head>
<body bgcolor="#FFFFFF">
<form method="post" name="form">
<table>
<tr><td><font face="Verdana, Arial, Helvetica, sans-serif"><strong>Billing Information</strong></font></td></tr>
<tr>
    <td>
        <table>
        <tr>
            <td>First Name:</td>
            <td><input class="inputbox" name="BillTo_Name_First" value=""></td>
        </tr>
        <tr>
            <td>Last Name:</td>
            <td><input class="inputbox" name="BillTo_Name_Last" value=""></td>
        </tr>
            <tr><td>Address:</td>
            <td><input class="inputbox" name="BillTo_Address" value=""></td>
        </tr>
        <tr>
            <td>City:</td>
            <td><input class="inputbox" name="BillTo_City" value=""></td>
        </tr>
        </table>
    </td>
</tr>
</table>

<div align="center"><br></div>
<table>
<tr><td><font face="Verdana, Arial, Helvetica, sans-serif"><b>Shipping Information</b></font></td></tr>
<tr>
    <td>
        <input type="radio" name="radiobutton" value="radiobutton" onClick="useBillInfo(this.form)">copy
        <input type="radio" name="radiobutton" value="radiobutton" onClick="UNuseBillInfo(this.form)">Undo
    </td>
</tr>
<tr>
    <td>
        <table>
        <tr>
            <td>First Name:</td>
            <td> <input class="inputbox" name="ShipTo_Name_First" value="" ></td>
        </tr>
        <tr>
            <td>Last Name:</td>
            <td> <input class="inputbox" name="ShipTo_Name_Last" value=""> </td>
        </tr>
        <tr>
            <td>Address:</td>
            <td> <input class="inputbox" name="ShipTo_Address" value=""></td>
        </tr>
        <tr>
            <td>City:</td>
            <td> <input class="inputbox" name="ShipTo_City" value=""> </td>
        </tr>
        </table>
    </td>
</tr>
</table>
</form>
</body>
</html>



Conditional Check - a script that allows a user to submit a form only if the user check a checkbox.
Categories : HTML, Java Script, Form Processing, Beginner Guides
showing Help (assistance) to the user while filling html forms.
Categories : HTML, Java Script, Form Processing
Show hide table rows to make dynamic forms
Categories : Beginner Guides, Java Script, Form Processing, HTTP
Changing the Style of form objects using the JavaScript OnClick method.
Categories : Java Script, Form Processing, Beginner Guides, CSS
JavaScript dropdown list menu to switch any page.
Categories : Java Script, Beginner Guides, Form Processing
PHP and javascript mouseover, mouseout, and mousedown events
Categories : PHP, Java Script, Form Processing, Beginner Guides
Form Processing : with alert Highlight field name which is not filled by user
Categories : Java Script, Form Processing, Data Validation, Beginner Guides, Web Design
Show or Hide your Content using Javascript
Categories : Java Script, HTML, CSS, Beginner Guides
Run a function once per session.
Categories : Beginner Guides, Java Script, Cookies
Form validations using javascript and including all validations in one message
Categories : HTML and PHP, Java Script, Form Processing
Fancy Quick Access Navigation Link
Categories : Java Script, Navigation, User Interface, DHTML, Beginner Guides
How to create <SELECT> menues that change on the fly according to other <SELECT> menues on the page?
Categories : Java Script, HTML
Form Validation Using PHP to highlight non valid fields
Categories : PHP, Form Processing, Data Validation, Beginner Guides
Show and Hide Tables, Table Rows, Form Elements Etc.
Categories : Java Script, Beginner Guides
Enchancing dd/mm/yyyy forms with unobtrusive javascript
Categories : Java Script, HTML, User Interface, Date Time