By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,327 Members | 2,661 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,327 IT Pros & Developers. It's quick & easy.

Quote Request Form

P: n/a
Hi,

I need help with a script I can add to my products on an html page.

What I want is to assign a number to each product or name such that when I
click on the link below the product image, it is added to a form/cart like
page that the user can then submit for a quote request,

Any Ideas?

Anonymous Chief
May 31 '07 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Thanx Rich,

Do you have any idea about the javascript code I could use to send possibly
the SKU to the cart. That would be helpful, or at least the javascript code
that would save the SKU in an array or something?

Anonymous Chief
"Rich" <ri**@newsguy.comwrote in message
news:f3********@drn.newsguy.com...
On Thu, 31 May 2007 02:57:12 GMT, Anonymous Chief wrote...
>>
Hi,

I need help with a script I can add to my products on an html page.

What I want is to assign a number to each product or name such that when I
click on the link below the product image, it is added to a form/cart like
page that the user can then submit for a quote request,

Any Ideas?

Anonymous Chief


Based on what you described you'd probably need to use some basic
javascript
along with your PHP, to handle the click action that adds the item to a
"cart".

Outside of that, depending on the quantity of products you have or plan to
have,
you may get better results using an SQL database. If that's overkill you
can
probably get by assigning a unique number or using your product's SKU for
the
form value.

Tom
--
Newsguy.com - Unlimited Accounts
Now with 32 concurrent connections

Jun 1 '07 #2

P: n/a
Message-ID: <f3********@drn.newsguy.comfrom Rich contained the
following:
>Based on what you described you'd probably need to use some basic javascript
along with your PHP, to handle the click action that adds the item to a "cart".
I can't see any need for JavaScript.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jun 1 '07 #3

P: n/a
Anonymous Chief wrote:
Thanx Rich,

Do you have any idea about the javascript code I could use to send possibly
the SKU to the cart. That would be helpful, or at least the javascript code
that would save the SKU in an array or something?

Anonymous Chief
"Rich" <ri**@newsguy.comwrote in message
news:f3********@drn.newsguy.com...
>On Thu, 31 May 2007 02:57:12 GMT, Anonymous Chief wrote...
>>Hi,

I need help with a script I can add to my products on an html page.

What I want is to assign a number to each product or name such that when I
click on the link below the product image, it is added to a form/cart like
page that the user can then submit for a quote request,

Any Ideas?

Anonymous Chief

Based on what you described you'd probably need to use some basic
javascript
along with your PHP, to handle the click action that adds the item to a
"cart".

Outside of that, depending on the quantity of products you have or plan to
have,
you may get better results using an SQL database. If that's overkill you
can
probably get by assigning a unique number or using your product's SKU for
the
form value.

Tom
--
Newsguy.com - Unlimited Accounts
Now with 32 concurrent connections

Uh, maybe you should ask in a javascript newsgroup?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jun 1 '07 #4

P: n/a
Geoff Berrow wrote:
Message-ID: <f3********@drn.newsguy.comfrom Rich contained the
following:
>Based on what you described you'd probably need to use some basic javascript
along with your PHP, to handle the click action that adds the item to a "cart".

I can't see any need for JavaScript.
Same here. Just a simple get or post request to a script which adds the
item to the shopping cart. Not even that much PHP code, depending on
how you do it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jun 1 '07 #5

P: n/a
I can do a post or get, but I can only do that from a form field. How can I
do it from a click of a link.

Can someone help me create a post/get script where a person would click on a
link and it would send a session variable in the form of a product SKU that
I can then submit as a form. Mybe in the future I will be able to use MYSQL
to not only send the SKU as a session variable but also look up the SKU in
the database then send the SKU # and SKU Details. That would be cool if I
could do that!!!

Thanx.
BTW: I am reading on php from the basics onwards. I just have this project
that needs that bit of code to be complete. My project is mainly html, and I
have renamed the files to .php. It is mainly composed of "includes". I use
the includes for the footer which contains links which I have setup on a
dedicated links.php file. I just need the post/get script where a person
would click on a link and it would send a session variable that I can then
submit as a form.

"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:pM******************************@comcast.com. ..
Geoff Berrow wrote:
>Message-ID: <f3********@drn.newsguy.comfrom Rich contained the
following:
>>Based on what you described you'd probably need to use some basic
javascript
along with your PHP, to handle the click action that adds the item to a
"cart".

I can't see any need for JavaScript.

Same here. Just a simple get or post request to a script which adds the
item to the shopping cart. Not even that much PHP code, depending on how
you do it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jun 1 '07 #6

P: n/a
Anonymous Chief wrote:
BTW: I am reading on php from the basics onwards. I just have this project
that needs that bit of code to be complete. My project is mainly html, and I
have renamed the files to .php. It is mainly composed of "includes". I use
the includes for the footer which contains links which I have setup on a
dedicated links.php file. I just need the post/get script where a person
would click on a link and it would send a session variable that I can then
submit as a form.

"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:pM******************************@comcast.com. ..
>Geoff Berrow wrote:
>>Message-ID: <f3********@drn.newsguy.comfrom Rich contained the
following:

Based on what you described you'd probably need to use some basic
javascript
along with your PHP, to handle the click action that adds the item to a
"cart".
I can't see any need for JavaScript.
Same here. Just a simple get or post request to a script which adds the
item to the shopping cart. Not even that much PHP code, depending on how
you do it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================


I can do a post or get, but I can only do that from a form field. How
can I
do it from a click of a link.

Can someone help me create a post/get script where a person would
click on a
link and it would send a session variable in the form of a product
SKU that
I can then submit as a form. Mybe in the future I will be able to use
MYSQL
to not only send the SKU as a session variable but also look up the
SKU in
the database then send the SKU # and SKU Details. That would be cool
if I
could do that!!!

Thanx.

(Top posting fixed)

You can't send a form from a link. All you can do is send data as part
of the URL. But that has nothing to do with PHP - that's just straight
HTML. You need to be asking those questions in alt.html.

And MySQL is a database - nothing more, nothing less. It allows you to
store data more easily. It has nothing to do with session or anything
else on the PHP/HTML side.

P.S. Please don't top post. Thanks.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jun 2 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.