JCF
|
| Posted: 03/13/2002, 3:41 PM |
|
Hi All
I have the following code in the Header section (HTML) for a Record page:
<table border="0" summary="">
<tr>
<td>
<form action="approve_wo_send_mail.php?fldCONTACT="
method="post">
<input type="submit" value="Approve Work Order">
</form>
</td>
<td>
<form action="reject_wo_send_mail.php?fldID=<?php
$fldCONTACT ?>" method="post">
<input type="submit" value="Reject Work Order">
</form>
</td>
<td>
<form action="complete_wo_send_mail.php?fldID=<?php
$fldCONTACT ?>" method="post">
<input type="submit" value="Complete Work Order">
</form>
</td>
</tr>
</table>
It works great it displays 3 button, which I can press and it runs the
correct PHP file but of course the <?php $fldCONTACT ?> does not work.
How can I pass information from the Record Form to these buttons?
I have tried using get_session but this does not work either?
Is there another place I can put this could so that the PHP scripting works
on it to replace the Vars?
I am using PHP 4 and MySQL
Thanks
JCF
|
|
|
 |
Alexey Alexapolsky
|
| Posted: 03/14/2002, 2:43 AM |
|
You can simply add CONTACT variable to Record form and set it if needed in
Before Show event.
and it will automatically be transfered to action url.
--
Alex
CodeCharge Developer
"JCF" <jcf@mail.org> wrote in message
news:a6oo2c$9r7$1@news.codecharge.com...
> Hi All
>
> I have the following code in the Header section (HTML) for a Record page:
>
> <table border="0" summary="">
> <tr>
> <td>
> <form action="approve_wo_send_mail.php?fldCONTACT="
> method="post">
> <input type="submit" value="Approve Work Order">
> </form>
> </td>
> <td>
> <form action="reject_wo_send_mail.php?fldID=<?php
> $fldCONTACT ?>" method="post">
> <input type="submit" value="Reject Work Order">
> </form>
> </td>
> <td>
> <form action="complete_wo_send_mail.php?fldID=<?php
> $fldCONTACT ?>" method="post">
> <input type="submit" value="Complete Work Order">
> </form>
> </td>
> </tr>
> </table>
>
> It works great it displays 3 button, which I can press and it runs the
> correct PHP file but of course the <?php $fldCONTACT ?> does not work.
>
> How can I pass information from the Record Form to these buttons?
>
> I have tried using get_session but this does not work either?
>
> Is there another place I can put this could so that the PHP scripting
works
> on it to replace the Vars?
>
> I am using PHP 4 and MySQL
>
> Thanks
>
> JCF
>
>
|
|
|
 |
|