473,320 Members | 1,979 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,320 software developers and data experts.

need to send POST info from URL

Hi

I am trying to create links to my product pages that are genereated via cgi.
The best way seems to use the search.cgi script that is used when somebody
enters a search term in the websites search box.
If I type in the model number, it takes you to the product page.

currently the search is submitted to cgi script via the POST, but I was
wondering if I can pass this modelnumber as a parameter to script via url?

the text box is called "searchkeys"
the cgi is called search.cgi
search is called from post

i would think the url looks like this:
http://www.mydomain.com/cgi-bin/sear...ys=modelnumber

I have tried something similar with other scripts from other websites and it
seems to work.

but in theis case, it doesnt work. I know the cgi scripts sees the forms
info from the sent page, but is there a way to do this by assigning the
value to the text box parameter 'searchkeys' and somehow send using url?
These are for products to be submitted on froogle.

Thanks in advance
Jul 20 '05 #1
2 5612
Danny wrote:
Hi

I am trying to create links to my product pages that are genereated via cgi.
The best way seems to use the search.cgi script that is used when somebody
enters a search term in the websites search box.
If I type in the model number, it takes you to the product page.

currently the search is submitted to cgi script via the POST, but I was
wondering if I can pass this modelnumber as a parameter to script via url?

the text box is called "searchkeys"
the cgi is called search.cgi
search is called from post

i would think the url looks like this:
http://www.mydomain.com/cgi-bin/sear...ys=modelnumber

I have tried something similar with other scripts from other websites and it
seems to work.

but in theis case, it doesnt work. I know the cgi scripts sees the forms
info from the sent page, but is there a way to do this by assigning the
value to the text box parameter 'searchkeys' and somehow send using url?
These are for products to be submitted on froogle.


Duh... my head's spinning from that description :-). What's the URL so
we can take a look?

My guess is the CGI script only accepts POST values. Change the script
so it accepts GET values.
Matthias

Jul 20 '05 #2

"Danny" <da********@hotmail.com> wrote in message
news:uu*******************@news4.srv.hcvlny.cv.net ...
Hi

I am trying to create links to my product pages that are genereated via cgi. The best way seems to use the search.cgi script that is used when somebody
enters a search term in the websites search box.
If I type in the model number, it takes you to the product page.

currently the search is submitted to cgi script via the POST, but I was
wondering if I can pass this modelnumber as a parameter to script via url?

the text box is called "searchkeys"
the cgi is called search.cgi
search is called from post

i would think the url looks like this:
http://www.mydomain.com/cgi-bin/sear...ys=modelnumber

I have tried something similar with other scripts from other websites and it seems to work.

but in theis case, it doesnt work. I know the cgi scripts sees the forms
info from the sent page, but is there a way to do this by assigning the
value to the text box parameter 'searchkeys' and somehow send using url?
These are for products to be submitted on froogle.


It all depends on the server code. In ASP, for example, URL parameters can
be accessed as

Request.QueryString("paramName")

and form data can be accessed as

Request.Form("paramName")

but it's also valid to code either of these as

Request("paramName")

in which case the both form data and URL query string data will be checked
for a value by the indicated name. IIRC, in contrast, JSP doesn't have this
option.

Jul 20 '05 #3

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

Similar topics

11
by: Google Mike | last post by:
I've got RH9 Linux with default PHP. Is there a way to send email on Linux to an Exchange Server from PHP and/or other tools when there is *NOT* SMTP access? Has anyone figured out a way to...
2
by: Fatih BOY | last post by:
Hi, I want to send a report from a windows application to a web page like 'report.asp' Currently i can send it via post method with a context like local=En&Username=fatih&UserId=45&Firm=none...
17
by: freemann | last post by:
Can anyone provide example code showing how to send form results to a results page, email and a comma delimited file? Notice that I need it going to all three locations. Details: I have forms...
7
by: fox | last post by:
Hi, Lacking javascript knowledge, I just realized why my project has a bug. I am using ASP to loop through a set of records while it creates URLs with a querystring that has a single value pair....
1
by: Lu Wei | last post by:
Hello, I'm writing a script to send posts to a web forum. I find that MSXML2.XMLHTTP object could communicate with web server but I can't make it send cookie which is needed for post...
17
by: rdemyan | last post by:
My app creates a building report. My users have requested that I provide functionality to e-mail these "building reports" to building managers once a month. So assuming that I have the...
19
by: Justin | last post by:
Harlow... i need some help on these... im actually trying to do a page using php... the function is to receive certain parameters from a 3rd party provider... and i need to redirect my page to...
6
by: zaina | last post by:
hi everybody i am nwebie in this forum but i think it is useful for me and the member are helpful my project is about connecting client with the server to start exchanging messages between...
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...
0
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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)...
0
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: 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: 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.