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

We need to get info from website using javascript, We need to Get info from...

We need to Get info from website using javascript I want to excerpt the text from all the available (blue) seats of all the events on this site without getting banned. I already

Want help in xml template converter, Want help in XML Template Converter ...

Want help in XML Template Converter Description- Produce a script that runs daily (can be activated by cronjob) and converts one XML feed into another XML feed format (convertin

I need a new full website development, I need a New Full Website Developmen...

I need a New Full Website Development - Product Search site I would like to setup a website that allows users to search for an item across designated retailers as well as return

Multilingual wordpress template design, Multilingual Wordpress Template Des...

Multilingual Wordpress Template Design + Wordpress site development Seeking professional Wordpress theme designer as well as developer to provide the following services- 1) O

#web, Ask question Write a PHP program that allows you to: (i) create the ...

Ask question Write a PHP program that allows you to: (i) create the text file "test.txt" (ii) insert the text: "Hello dear" into the file (iii) append the text: "Welcome" to the

Want a workflow designer, want a Workflow Designer (HTML5) Project Descr...

want a Workflow Designer (HTML5) Project Description: I am seeking an HTML5 designer for a custom workflow tool. It should have drag and drop functionality. Saving it as XML

Need help in duma ice website, Duma ICE Website I want to work in conjun...

Duma ICE Website I want to work in conjunction with a Wordpress developer to create a Wordpress website for Number of pages as well as content will be based on the existing ht

We devour a magento website that we tried to host, Magento Speed optimizati...

Magento Speed optimization We devour a magento website that we tried to host in hostgator and amazon cloud servers. And it still extremely slow. The hosting company says its poo

We need help in wordpress features development, We need help in Wordpress F...

We need help in Wordpress Features development We are utilizing a wordpress theme already we want to integrate this following features similar to this website 1) Loan calculator

Prepare a few custom post types, Looking to prepare a few custom post types...

Looking to prepare a few custom post types, approval processes, user registration types reports/analytics in a custom WordPress application. It's not a rapid job, there's quite

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