Robert
|
| Posted: 09/22/2002, 5:07 PM |
|
Is this possible?
*note the images instead of regular form submit buttons.
*I know this is really not an actual form, I found it easier to describe this way and it's good practice for me!...
Using CC and php4,
input1 and input2 must pass through on either submit
<Robs search form description>:
input1 - text
input2 - text
input3 - submit (image1) - does action1.php
input4 - submit (image2) - does action2.php
</Robs search form description>
Thanks if anybody can help!
|
|
|
 |
Nicole
|
| Posted: 09/25/2002, 12:15 AM |
|
Robert,
I suppose that both features is not difficult to implement.
I suggest you to use CC Record form.
1. to substitute button with image you need some custom code. Please refer to the following article about it: http://www.gotocode.com/art.asp?art_id=82&
One comment. Use the following code in form Before Show event instead the one proposed in article:
$tpl->set_var("Search1Insert" , "<a href=\"javascript:make_search()\"> <img src=images/icon_admin.gif> </a><input type=\"hidden\" value=\"insert\" name=\"FormAction\">");
where "Search1" is form name. This code is for "Insert" button. Use the similar one for "Cancel" one.
2. as you're using Record form create before Insert and Before Cancel event where modify the $sActionFileName var value (is stores the file name the user will be redirected to). Do not forget to add search parameters to it. E.g.:
$sActionFileName = "Page1.php?name=". $fldname. "&author=".$fldauthor."&category_id=".$fldcategory_id."&pricemin=".$fldpricemin."&pricemax=".$fldpricemax;
|
|
|
 |
Robert
|
| Posted: 10/05/2002, 11:54 PM |
|
I will try that! and let you know how it goes.
Thanks
|
|
|
 |
|