473,793 Members | 2,948 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4444
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.c omwrote in message
news:f3******** @drn.newsguy.co m...
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.comfro m 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.c omwrote in message
news:f3******** @drn.newsguy.co m...
>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*******@attgl obal.net
=============== ===
Jun 1 '07 #4
Geoff Berrow wrote:
Message-ID: <f3********@drn .newsguy.comfro m 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*******@attgl obal.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*******@attg lobal.netwrote in message
news:pM******** *************** *******@comcast .com...
Geoff Berrow wrote:
>Message-ID: <f3********@drn .newsguy.comfro m 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*******@attgl obal.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*******@attg lobal.netwrote in message
news:pM******** *************** *******@comcast .com...
>Geoff Berrow wrote:
>>Message-ID: <f3********@drn .newsguy.comfro m 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*******@attgl obal.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*******@attgl obal.net
=============== ===
Jun 2 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
10336
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 120''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
5
1631
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 working as expected. Some snippets of my code are: fSubmit = Request.Form("Submit1") = "Process" Response.Write("Submit1 " & Request.Form("Submit1") & "<br>") Response.Write("fSubmit: " & fSubmit & "<br>") ......
2
1753
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="+ Request.Form("Box1").Item); out("<br>Request.Form="+ Request.Form("Box2").Item);
4
4299
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 (recipes for making cosmetics etc) in 3 stages: Stage 1: basic info such as title, method etc and number of Phases (steps in recipe). Stage 2: dynamically generated form containing the exact number of phases as textboxes, depending on the number...
5
2200
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 of input boxes. The following is the code being used: If Len(Request.Form("ID_0"))>0 Then AuthorID=Request.Form("ID_0") FName=Request.Form("fName_0") LName=Request.Form("lName_0")
4
5606
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 = '" & request.form(strSerialNum) & "', " sql01 = sql01 & "Description = '" & request.form(strDesc) & "', " sql01 = sql01 & "Location = '" & request.form(strLoc) & "', "
8
3088
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 the values, but when I update Request.form does not return me anything for disabled fields. How to read disabled fields at the server side
4
4851
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. Help -- why can`t I give each form element a different name? Any suggestions will be gratefully appreciated. Also,See example at very bottom of something that once worked on a remote server, but doesn't on IIS 5.1, windows xp pro
4
3769
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 the end of the loop and the value of x3 as not all options may be selected from the form yet the loop goes through the entire request.form list I have to add addtional code to strip off the last "and" and was wondering if there is a way to...
2
6308
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 enctype="multipart/form-data" method="post" name="testform">
0
10430
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10211
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10159
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9033
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5560
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2917
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.