I tried it but it had errors when I included some javascript functions, I'm not sure where to put it, maybe thats where I made the mistake
where should I place them so that I can use those functions on both forms??
<html>
<head></head>
<body>
<table ....>
<php?
if(a==b){ ?>
<form method="post" name="form1" action="proccess1.php">
...
</form>
<php?
else{ ?>
<form method="post" name="form2" action="proccess2.php">
...
</form>
<php }?>
</table>
<script type="text/javascript">
............
............
</script>
</body>
</html>