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

I need a three page website, I need a three page website I have a homepa...

I need a three page website I have a homepage as well as two internal page designs ready in fireworks. I want these three pages online by the weekend. More work if we discover a

Standard internet protocol, FTP (File Transfer Protocol), a standard Intern...

FTP (File Transfer Protocol), a standard Internet protocol. This is the simplest way to exchange files among computers on the Internet. FTP is an application protocol which uses th

Need experienced php developer, I need Experienced Php developer.with subse...

I need Experienced Php developer.with subsequent skills Cakephp, Wordpress, Codeigniter , Php,Mysql,Ajax. Skills required: CakePHP, MySQL, Codeigniter, PHP, Wordpress

We need an expert help in web app development, We need an expert help in We...

We need an expert help in Web App Development I am starting a fresh specific web development project that will not be based on a CMS. I want the application to be based onlin

Wix commerce site needs shopping backend integration, WIX commerce site nee...

WIX commerce site needs 1shopping backend integration Project Description: We sell children's furnitureRIEchildrensFurniture and want a robust backend integrated shopping car

Software development, Software development Project Description: We wa...

Software development Project Description: We want experienced programmer to write a software for us. Software nature - Chat software - VoIP technology- social networking

Looking for a good programmer to work with my graphic design, I am looking ...

I am looking for a good programmer to work with my graphic design/illustrator on my team to actively blend animation with gameplay and create a fun, simple and easy, 2d iPhone gam

I am in need of wordpress tweaks to existing custom plugins, I am in need o...

I am in need of Wordpress Tweaks to Existing Custom Plugins Was hoping you had some obtainable time today, about hours to work on tweaks to plugin functionally of existing Wordp

I need help for website design and development, I need help for Website Des...

I need help for Website Design and Development Required Looking for a talented and experienced designer and developer for a new website. The site is a combination of social netw

Client specific url website in php, JC - Client Specific URL Website Ple...

JC - Client Specific URL Website Please respond as follows- 1) Do you FULLY understand the requirements? 2) Are you an EXPERT with Magento? 3) Do you have ANY questions

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