I am trying to make a mechanism that switches between forms. This only switches between text, how can i make this possible to switch between forms.
you can view this code live http://harborcityentertainment.com/hcrindienetwork/tester.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<script language="javascript" type="text/javascript">
function ShowParagraph(obj){
if(obj.value == "Para1"){
document.getElementById('Para1').style.display = '';
document.getElementById('Para2').style.display = 'none';
}
else if(obj.value == "Para2"){
document.getElementById('Para2').style.display = '';
document.getElementById('Para1').style.display = 'none';
}
else{
document.getElementById('Para1').style.display = 'none';
document.getElementById('Para2').style.display = 'none';
}
}
</script>
</head>
<body>
<form name="myForm1" id="myForm1" method="post" action="test.php?a=1">
<input type="radio" value="Para1" name="showPara" onClick="ShowParagraph(this);" />Musician
<input type="radio" value="Para2" name="showPara" onClick="ShowParagraph(this);" />Venue
<p id="Para1" style="display:none;border:1px #000000 solid;width:500px;">other form i do not yet
have, try option 2 for form!
</table>
</p>
<p id="Para2" style="display:none;border:1px #000000 solid;width:500px;"><?php include
'join_form_parse.php'; ?></p>
</form>
</body>
</html>