[FX.php List] Execute submit button when arriving to a page?

Erik Andreas Cayré erik at cayre.dk
Sun Aug 6 06:20:53 MDT 2006


Den 03/08/2006 kl. 20.11 skrev Jonathan Schwartz:

> I have a search and display page set up the way I want it.  If no  
> data is entered in the search field, it defaults to find all with a  
> max of 100 records, sorted by a certain field.  The sortfield is  
> established in an input statement in the form on the page.   So far  
> so good.
>
> Now, I've added site navigation links that include landing on this  
> page.  Is there a way to invoke the existing submit button on the  
> form upon arriving, thus establishing the sort field?  Or, do I  
> need to define this again elsewhere on the page?

I did a page like this once.
Have the search be triggered both while loading the page (first view)  
and by clicking the submit button.
If you use GET with the Submit button, you can link to the page in  
question with the same parameters included in the link.
Eg: www.yoursite.com/listing.php?keywords=

---
Erik Andreas Cayré
Spangsbjerg Møllevej 169
DK-6705 Esbjerg Ø

Home Tel: +45 75150512
Mobile: +45 40161183


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1856 bytes
Desc: not available
Url : http://www.iviking.org/pipermail/fx.php_list/attachments/20060806/eb11caae/smime.bin


More information about the FX.php_List mailing list