I want to link to another document f
according to which button is pressed.
the file "top.php" is the same file that holds the buttons - how do I go about testing to see which of the two buttons was pressed ?
Each button should fire a different php
i.e. history.php and maths.php
I guess i use an if stmt .. ?
<form action = "top.php" style= "btn_text" >
<input type = 'hidden' name='run1' value="on">
<input value = "history" onMouseover="this.style.backgroundColor='red'"
onMouseout="this.style.backgroundColor='lime'" type="button"
name = "btn1" class="btn" >
<input value = "maths" onMouseover="this.style.backgroundColor='red'"
onMouseout="this.style.backgroundColor='lime'" type="button"
name = "btn2" class="btn" >
thanks