[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: Category Form Selection or Database Type
****** message to minivend-users from Mike Lerley <mike@bfent.com> ******
re: #1:
I use the following code:
<FORM action=/cgi-bin/red.cgi method=post>
<INPUT type=hidden name=from value=/>
<SELECT NAME="prod" SIZE=1
onChange="self.location.href=this.form.prod.options[this.form.prod.selectedIndex].value">
<OPTION SELECTED VALUE="">Please Select an Item
[tag each products]
[sort products:type products:title]
<OPTION VALUE="[area [loop-code]]">[loop-field title]
[/tag]
</SELECT><INPUT NAME="go" TYPE=Submit VALUE="GO!">
</FORM>
It's set up as a auto-fire javascript thing so as soon as you let go of the mouse on
your selection, it goes to the page. The form wrapper is there in case the browser
doesn't support javascript; red.cgi is a simple script that redirects the browser.
"from" input field takes you back where you came from in case you select "Please
Select an Item".
If you're not interested in all that stuff, the [tag]..[/tag] construct will do what
you want it to.
-mike
Brett wrote:
> ****** message to minivend-users from "Brett" <brett@neuconcept.com> ******
>
> I'm sorry if these are too simple. I just cannot find the answers
> Got 2 questions, any hints on either are appreciated.
>
> 1. Has anyone put a pop-up menu of all the categories available for an
> automatic form search? I can do this manually, but if the categories change
> it would be nice if the pop-up of all of them could change with the
> database.
>
> 2. Also, if I have 10,000+ products, is the default ".GDBM" or ".DB"
> efficient enough for this? Or is SQL a better means?
>
> Any input is welcome.
> Thanks,
> brett
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> Brett Coleman NeuConcept Productions Inc.
> brett@neuconcept.com http://www.neuconcept.com
> http://www.neuconcept.com/pager 314-605-8000
> -
> To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list
--
Mike Lerley, System Integrator
BonFire Enterprises
56 Leighton Road
Augusta, ME 04330
Email mike@bfent.com
Phone (207) 622-3298
Fax (207) 623-5125
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list