okay
there are two METHODS to send values from a form
GET or POST
you might have seen this in URL:
/page.php?file=test1.log&action=read
that is the GET method
POST method will send same values to processing page
file='test1.log'
action='read'
.. but the user will not see these values
to select each method you use:
<form method="GET">
or
<form method="POST">
If you do not tell method:
<form>
the default method is GET ( see values in URL )
say we have these two actions:
Read, Delete
then we make a submit page looking like this:
filename1 ---- ReadButton ---- DeleteButton
filename2 ---- ReadButton ---- DeleteButton
filename3 ---- ReadButton ---- DeleteButton
each line will have its own <form>
something like this:
<form>filename1 <input type="submit" name="item1" value="Read">
<input type="submit" name="item1" value="Delete">
</form>
<form>filename2 <input type="submit" name="item2" value="Read">
<input type="submit" name="item2" value="Delete">
</form>
<form>filename3 <input type="submit" name="item3" value="Read">
<input type="submit" name="item3" value="Delete">
</form>
In the processing page, we can test these values sent,
and see WHICH submit button was Clicked.
This is the next Chapter posters in this topic will write!
🙂