Form objects and elements array, PHP Web Programming

Assignment Help:

<HTML>

<HEAD>

<TITLE>FORMS</TITLE>

<!-- This code allows to access the Form objects Elements Array //-->

<SCRIPT Language="JavaScript">

function Ver(form1)

{

v=form1.elements.length;

if (form1.elements[3].name=="Button1")

{

alert('First form name : '+document.forms[0].name);

alert('No. of Form elements of  ' +document.forms[0].name + ' = '+v);

}

else if (form1.elements[4].name=="Button2")

{

alert('Second form name : '+document.forms[1].name);

alert('No. of Form elements of  ' +document.forms[1].name + ' = '+v);

}

for(i=0;i<v;i++)

alert(form1.elements[i].name+  ' is at position '+i);

}

</SCRIPT>

</HEAD>

<BODY>

<FORM Name="Survey Form 1">

FIRST FORM: <i><b>Survey Form 1 </b></i><BR><BR>

First Name : <Input Type=Text Name="Text1" Value=""><BR><BR>

<Input Type="radio" Name="Radio1" Value=""> Fresher

<Input Type="radio" Name="Radio1" Value=""> Experienced<BR><BR>

<Input Type="Button" Name="Button1" Value="Click1" onClick="Ver(form)">

</FORM>

<FORM Name="Survey Form 2">

SECOND FORM: <i><b> Survey Form 2 </b></i><BR><BR> Name : <Input Type="Text" Name="Text2" Value=""> <BR><BR>

Password : <Input Type="Password" Name="Pass2" Value="">

<BR><BR>

<BR><BR>

<Input Type="CheckBox" Name="Check1" Value="" > Employed

<Input Type="CheckBox" Name="Check2" Value="" > Studying

<Input Type="Button" Name="Button2" Value="Click2"

onClick="Ver(form)">

</FORM>

</BODY>

</HTML>


Related Discussions:- Form objects and elements array

A bot for uploading purpose, A bot for uploading purpose Project Descrip...

A bot for uploading purpose Project Description: i'm seeking a good coder to code me a bot for uploading purpose must work on windows Skills required are C Programming, PH

Develop simple custom video playlist wordpress plugin, Develop Simple Custo...

Develop Simple Custom Video Playlist WordPress Plugin I want help to develop a simple wordpress plugin Desired Skills are MySQL Administration, HTML, PHP, WordPress

Dns server, Several computers linked to the Internet host part of the DNS d...

Several computers linked to the Internet host part of the DNS database & the software which allows others to access it. These all computers are known DNS servers. No DNS server has

Want help of seo for existing website, SEO FOR EXISTING WEBSITE We are i...

SEO FOR EXISTING WEBSITE We are in search of an expert who will do the SEO for an existing website. The website is hosted in a third party server not ours. The client wants his

We are in need of a front end web developer, We are in need of a Front End ...

We are in need of a Front End Web Developer We are seeking to hire a front end web developer who can work with us to develop our web portal using our API. We have an appropriate

Tables, In this you will learn how to put tables in your web documents. It ...

In this you will learn how to put tables in your web documents. It is not that a table is just a combination of rows & columns. If you have ever seen any table in web page you may

Professional expert web engineer wanted for start-up, Professional expert w...

Professional expert web engineer wanted for exciting start-up We are changing the method the world publishes, promotes and consumes video. We are in search of a talented free

We are looking for a developer of responsive website, Looking for someone t...

Looking for someone to make my blog responsive on all devices Job Description- We are looking for a Web Developer. Your responsibilities- a) Review business requirements

E-commerce platform on website app, E-Commerce platform on website App H...

E-Commerce platform on website App Hello creative web developers as well as programmers. I am observing to create a new fashion / website / platform, I want it to be connecte

Looking for a facebook app developer to build facebook, Facebook app develo...

Facebook app developer Looking for a Facebook app developer to build Facebook Application but with some additional features and add-ons. The app developer wants experience in

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd