I do this kind of thing all the time.
Consider using hidden for the various values you are passing, and name the
buttons "doAction" and set the values to "Add", "Delete", "View" ...
Then the php file can do:
switch($doAction) {
case "Add":
// your code
break;
case "Delete":
// your code
break;
case "View":
// your code
break;
}
> From: Ben Weinberger <[EMAIL PROTECTED]>
> Date: Sat, 03 Mar 2001 08:57:30 -0600
> To: "george" <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] passing variables
>
> You could still use a form, but just have a very small one... something like:
> <form method=post action="yourpage.html">
> <input type=IMG name=REPLY value=submit><img src="ImageForReplies">
> <input type=IMG name=DELETE value=submit><img src="ImageForDeletions">
> </FORM>
>
> This would then pass any variables you wanted to the next page...
>
> -Ben
>
> At 03:49 PM 3/3/2001 +0100, Ernest E Vogelsinger wrote:
>> At 15:41 03.03.2001, george said:
>> --------------------[snip]--------------------
>>> I plan to add hidden fields for all the information pulled out the db my
>>> question is this how do you pass variables into the next page without using
>>> a form.
>>> can it be done say instead of a form there was a link next to each message
>>> which said view, clicking on this takes you to a page where you read the
>>> full mail, then there are another 2 links on for reply and one for
>>> delete.How could that be done
>> --------------------[snip]--------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]