473,324 Members | 2,248 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Quote Request Form

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
6 4423
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Christopher Brandsdal | last post by:
Hi! I get an error when I run my code Is there any other way to get te information from my form? Heres the error I get and the code beneath. Line 120 is market with ''''''''''''Line...
5
by: Wayne Wengert | last post by:
I am trying to use Request.Form to differentiate between when a page containing a form is first loaded and when it is reloaded as a result of the user clicking on the Submit button. Things are not...
2
by: Harag | last post by:
Hi All Using: JScript IIS 5 I have a problem in the following code: // The next 4 lines display exactly what was typed in the text boxes. out("<br>Request.Form="+...
4
by: Paxton | last post by:
At the risk of being told "If it ain't broke, don't fix it", my code works, but is ugly. Part of the admin site I'm working on at the moment includes a facility for users to enter Formulations...
5
by: Jack | last post by:
Hi, I am trying to get a thorough understanding of a code where a addition or deletion of records can be done from a list of records. For addition part of the form, data is being obtained from set...
4
by: Jack | last post by:
Hi, I have a asp page where part of the code is as follows. This builds up the sql statement partially. sql01 = "UPDATE EquipmentTbl SET " sql01 = sql01 & "SerialNumber = '" &...
8
by: abcd | last post by:
I can get the value on the form at the server side by using Request.form("max") when max field is disabled I dont get value. For GUI and business logic purpose I have disabled some fields with...
4
by: whyyyy | last post by:
USING IIS 5.1, and Windows XP pro, the following form works on my system, and I can use as many form elements as I wish, as long as all form elements have the same name: "words", in this example....
4
by: Michael Kujawa | last post by:
I am using the following to create an SQL statement using the names and values from request.form. The loop goes through each item in request.form The issue comes in having an additional "and" at...
2
by: MDANH2002 | last post by:
Hi From VB.NET I want to simulate the POST request of the following HTML form <html> <title>HTTP Post Testing</title> <body> <form action=http://www.example.com/postdata ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.