Hi,
I meant that depending on the selection, you grey out the some of the sections/options where you could put information. Here is an example of Greying out I found
here
<html>
<head>
<title>Disable Drop Down</title>
<script type = "text/javascript">
function disableDrop(){
if(frmMain.sltMain.options[0].selected){
frmMain.sltSecondary.disabled = true;
}
else{
frmMain.sltSecondary.disabled = false;
}
}
</script>
</head>
<body>
<form ID = "frmMain">
<select ID = "sltMain" onchange = "disableDrop();">
<option value = "onetime">One-Time</option>
<option value = "recurring" selected>Recurring</option>
</select>
<select ID = "sltSecondary">
<option value = "1">One</option>
<option value = "2">Two</option>
<option value = "3">Three</option>
<option value = "4">Four</option>
</select>
</form>
</body>
</html>
Yes I know it uses Javascript, but just to show you.
So applying this sort of thing to your method you might have.
Name:__________________________________
Address:_______________________________
Method of Payment:
(*) Tape Cheque to a pigeon
( ) Pay by C/C
( ) Use Paypal
---------------------------------
Pigeon Payment Section
Name of pigeon provider:________________
Number of pigeon's:_____________________
---------------------------------
Pay by C/C Section
C/C Number: ____________________________
exp date: ______________________________
funky 4 digit number: __________________
---------------------------------
Pay pal section
Paypal number____________________________
paypal pass:_____________________________
---------------------------------
So when you select pigeon payment option from the radio box, you can't even fill in the details of the other sections and the same for the other sections and you can obviously keep common information for each like name or username or something at the top as they are common to all. Hope this is useful...
Regards Paul
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.