Thanks guys, you helped me get to a certain point in my script so now people see one table, and then they will see another part of the table if/when they click on a certain radio button. Click on the first radio button will once again hide the other part of the table.
This works great except now when I am allowing them to update their information, if the 'couple' radio button is already clicked then the hidden part of the table won't appear unless it's clicked but there is no reason to click it as it's already got the correct radio selected.
My variables are in php if that makes any sense. I've tried everything that I can think of, some of which I am surprised it won't work, but I can not get the page to already be expanded if when the page first loads the expanded radio button is already selected.
<script type="text/javascript">
function showCoupleForm() {
document.getElementById("coupleForm").style.display = "block";
document.getElementById("coupleForm2").style.display = "block";
document.getElementById("coupleForm3").style.display = "block";
}
function hideCoupleForm() {
document.getElementById("coupleForm").style.display = "none";
document.getElementById("coupleForm2").style.display = "none";
document.getElementById("coupleForm3").style.display = "none";
}
</script>
and then of course in the table I have this inside one of the radio choices in the column in question: onclick=\"showCoupleForm(); but the problem is like I said, it works great but if it's already populated as a couple because they are 'updating' their profile then how can I get the form to realize it needs to be expanded? I am getting better with php and even mixing php, html, and javascript believe it or not so if anyone can help me, I'll most likely figure it out with your help. Thanks a lot guys.
-Chris
ps. So far I've managed to create a form that registers a user, sends the user an email, once the email link is clicked their access level moves up to 1 allowing them to login and then their new login date/time is recorded into the database and they can perform a fake search which only retrieves rows from my database and now they can update their own user information. This is becoming so much fun but I still can't do everything that I would like to be able to do such as how can I make it so that users can upload pictures and those pictures are auto thumbnailed and the size is checked, and they can later delete or edit those pictures? I seem to be having trouble learning the image uploading but then again this isn't a PHP forum.