[PHP] Conditional anchor href value

2003-12-02 Thread Eric Blanpied
I'm working on a page which displays details for a given record, and allows the user to flip back and forth through a large set of records, much like a set of index cards. Previous and Next buttons reload the card with the new record id. It is important that the URLs for the cards be very simple

RE: [PHP] Conditional anchor href value

2003-12-02 Thread Martin Towell
: Eric Blanpied [mailto:[EMAIL PROTECTED] Sent: Wednesday, 3 December 2003 2:05 PM To: php-general Subject: [PHP] Conditional anchor href value I'm working on a page which displays details for a given record, and allows the user to flip back and forth through a large set of records, much

Re: [PHP] Conditional anchor href value

2003-12-02 Thread Chris Shiflett
--- Eric Blanpied [EMAIL PROTECTED] wrote: Still the js approach has been closest to what we need: the php script puts all the possible links from that card into the page, and then the js function uses the correct one. Does anyone have any advice? Let PHP choose the correct one? Maybe

Re: [PHP] Conditional anchor href value

2003-12-02 Thread Eric Blanpied
Chris Shiflett wrote: --- Eric Blanpied [EMAIL PROTECTED] wrote: Still the js approach has been closest to what we need: the php script puts all the possible links from that card into the page, and then the js function uses the correct one. Does anyone have any advice? Let PHP

Re: [PHP] Conditional anchor href value

2003-12-02 Thread Eric Blanpied
Martin Towell wrote: you might be able to put the id of the next/prev card as the value of the option and then use javascript to generate the url. the only reliance then would be that the browser as JS enabled, as the above should be possible with the most basic of JS That's not all