checking which submit button was pressed
i have a form and there are two submit buttons, one enters data and then goes back to the main page, one enters data and then returns to the same page to let the user continue to enter more data. i tried to follow some code from here http://builder.com.com/5102-6371-5242116.html but i cant get it to work.
the buttons :
<p><input type="submit" name="addcont" value="Add More"></p>
<p><input type="submit" name="addfin" value="Add and Finish "></p>
if ($_POST['addcont']) // if (isset($_POST['addcont']))
what am i doing wrong? my page never echos hello when i click on the add more button. any help appreciated.