Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Oct 2000
Posts: 124
Member
Member
Offline
Joined: Oct 2000
Posts: 124
The reson i ask is: Im currently setting up an e-commerce system for a small record production company who wish to sell their mail-order catologue on-line.

Due to the size of the catologue entering all the details into a hosted shopping cart system would take weeks, so instead I signed up to a remotely-hosted system run by Mals e-commerce (dunno if anyones heard of it) which would allow me to simply put all the product details into a query string such as http://www.server.com/script.cfm?accountnum=48338&product=product+name&price=394 and it would perform all the neccessary calculation and card transfers blahblahblah

So my plan is to create a popup order form into which people can enter the product details, similar to the printable mailorder version.

But becuase there is sometimes a product with a similar name it is neccessary to pu them in different categories such as TS (tshirt) CD (cd) and the like, which i want to put in a dropdown menu.

Unfortunatly you can only put two queries in the data sent to the server: Product and Price.

So my question is would it be possible to combine the data from the product name field with the data from the product description field and combine them both into the product query? Or is there a script that could be written to perform the same task?

Sorry if this was a bit long, but any help would be massively appreciated.


Signatures suck. Thats why I dont have one.
Sponsored Links
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
not unless you want to do some big coding..

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
I hate to disagree, but.....

with your form set up like this:
Code
code:
and with the following javascript:
Code
code:

Just a thought smile

Joined: Oct 2000
Posts: 124
Member
Member
Offline
Joined: Oct 2000
Posts: 124
Damn it...

Is there ANYTHING Cal doesnt know? laugh
As it turns out I probably wont need it anyway as the whole situation with the e-commerce thing is getting a tad beyong me........ Thanks anyway, I'll keep hold if that just in case...... smile


Signatures suck. Thats why I dont have one.
Joined: Oct 2000
Posts: 124
Member
Member
Offline
Joined: Oct 2000
Posts: 124
Ah - It didnt work the way I wanted anyway.....

My idea was that instead of a form generating the query: ?product=*prod*&price=*price*&cat=*cat*

It would create the query ?product=*prod*+*cat*&price=*price*

Never mind.... Its all acedemic anyway.....


Signatures suck. Thats why I dont have one.
Sponsored Links
Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
It does work that way, with some side effects.

it actually generates

product=prod-cat&price=price&cat=cat&prod=prod

Just a thought smile


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)