PDA

View Full Version : selected button to enable options


wattsup
11-20-2007, 07:24 PM
Afternoon! I a very new to DW - I currently making a DW/PHP site for users to login with. My problem is that i have a 2 radio buttons (Yes/No). If the user select "Yes" I would like to enable some upload options. How would I do this?

davidj
11-21-2007, 07:23 AM
you need to learn a scripting language like php

there are beginner tutorials on this site

wattsup
11-21-2007, 03:23 PM
Thanks - I know a little php and javascript more in to Flash AS3. but for some reason my code is not working. Here is a snip of code that I am using


<script language="javascript">

document.form1.uName.disabled = true;

function KillMe(){
if(document.form1.lName == "me"){
document.form1.uName.disabled = false;
}
}

davidj
11-22-2007, 09:26 AM
ic what your doing

rather than this...

document.form1.uName.disabled

try this

document.getElementById('uName').disabled