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

Needed web designer and web professional, Web Designer and Web Professional...

Web Designer and Web Professional I have a current small business website as well as need help changing it so that people can access it from a smart phone and so on. Flash, perh

I want a video player thumbnail script, Video player/thumbnail swap-out scr...

Video player/thumbnail swap-out script needed I want a video player thumbnail script. There will be one big, main video, adjacent to either three or four thumbnails of other vid

Mailing, how to mail to google from php

how to mail to google from php

I want help in fantasyhubfund minimum viable product, FantasyHubFund Minimu...

FantasyHubFund Minimum Viable Product We want a developer that can start as soon as humanly possible on a small project build. This project consists of four pages, some pop up m

Need help for magento shoe store, Need help for Magento shoe store I wan...

Need help for Magento shoe store I want a quote for a shoe store website in magento with the following specification. I want estimate of hours and hour charge: Functionalitie

Want help in magneto multi-vendor store, Magneto multi-vendor store We a...

Magneto multi-vendor store We are looking for a Magneto multi-vendor store. We need a developer that has already developed the same type of site therefore that we can edit & twe

We need help to create website and app design, We need help to create Websi...

We need help to create Website and App Design Website is internet as well as app based. Customers register accounts with email as well as zip code Free website where custo

I need a one webpage coming soon, I need a one webpage Coming Soon I wou...

I need a one webpage Coming Soon I would like one page design to so message like coming soon. a) Left Video player I provide you the code. b) Right Contact info c) Face

Nodejs developers to move for a startup, NodeJS Developers to move to Thail...

NodeJS Developers to move to Thailand for a startup Description- I am looking to hire two NodeJS developers to join me for a minimum of 6 months (no max. time) as well as develo

Seeking a web developer to transfer site, Amazon Webstore Developer Seek...

Amazon Webstore Developer Seeking a web developer to transfer functionalfitnessoutlet.com to an amazon webstore. Job Description- We're looking for a Web Developer. Your r

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