Use the radio buttons in web page, PHP Web Programming

Assignment Help:

<HTML>

<HEAD>

<TITLE> Working with Radio Buttons </TITLE>

<SCRIPT LANGUAGE="JavaScript">

function calculate(form)

{

if(form.elements[2].checked)

{

}

else

{

form.result.value = form.entry.value * form.entry.value;

form.result.value = form.entry.value * 2;

}

 

}

</SCRIPT>

</HEAD>

<BODY>

<FORM >

<CENTER><BR>

<B>Value:</B>

<INPUT  TYPE="text"  NAME="entry"  VALUE=0>

<BR><BR>

<SPACER Size= 190>

<B>Action:<B><BR>

<SPACER Size = 225>

<INPUT TYPE="radio" NAME="action1" VALUE="twice" onClick="calculate (this.form);">Double<BR>

<SPACER Size = 225>

<INPUT TYPE="radio" NAME="action1"  VALUE="square" onClick="calculate(this.form);">Square <BR><BR>

<B>Result:</B>

<INPUT TYPE=text NAME="result" onFocus = "this.blur();">

</CENTER>

</FORM>

 </BODY>

</HTML>


Related Discussions:- Use the radio buttons in web page

I need help for wordpress plugin to pull facebook group post, I need help f...

I need help for Wordpress plugin to pull Facebook group posts I am seeking someone to create a custom WordPress plugin for me that will take the post feed from my closed/private

I need help to build state information portal, I need help to build State I...

I need help to build State Information Portal I am looking for a complete state information portal which has information about state education, healthcare, tourism, government o

Create a layout table, In the last section you utilized cells to build a ta...

In the last section you utilized cells to build a table. Now, you will learn how to start with a table & add cells later on. 1. In the Objects panel, click on the Draw Layout Ta

Input text field, The field size attribute determines the width of the disp...

The field size attribute determines the width of the displayed field. The maxlength attribute sets a limit on the maximum number of characters that can be typed in the field (whic

Create an html document, An HTML document may be created via any HTML edito...

An HTML document may be created via any HTML editor or text editor such as notepad etc. STEPS FOR CREATING A SIMPLE HTML PROGRAM 1) Go to Start -> Pro

I am seeking someone that will build a very similar website, Rap Genius Clo...

Rap Genius Clone I am seeking someone that will build a very similar website as (though the content will be very different). The functionality will pretty much be the similar (u

I am in search of some local help with my sites, Xcart Help I am in sear...

Xcart Help I am in search of some local help with my sites. These are both built on xcart platforms. I need help with- 1) Integrating moneris to teamperfect site 2)

Wordpress plugin for capture vehicle photos, Wordpress Plugin Capture Vehic...

Wordpress Plugin Capture Vehicle Photos and description create video, submit to YouTube Project Description: I want to prepare a web based automated software program that wil

I need help in rv storage, I need help in RV Storage Knowledge as well a...

I need help in RV Storage Knowledge as well as previous experience programming checkout fees between Interchange and Processor companies. Job Description- We're seeking a Web

Web developer wanted to create a website, Web developer wanted to create a ...

Web developer wanted to create a website for an exciting start-up company We are presently looking to develop an editable website with responsive design. The basic design has pr

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