473,800 Members | 2,578 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5627
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********@hot mail.com> wrote in message
news:uu******** ***********@new s4.srv.hcvlny.c v.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.QuerySt ring("paramName ")

and form data can be accessed as

Request.Form("p aramName")

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

Request("paramN ame")

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
12094
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 use PHP to get inside an OWA (Microsoft Outlook Web Access) website to send email that way? The reason I ask is because my corporate office is going to do away with our rogue SMTP server access and force everything through Exchange
2
20751
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 But the problem occures when i want to send a data with & sign (i.e: Firm=F&B). I try to solve this problem with using boundary, but i failed. Any idea!?
17
2088
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 created and working. The first form the user fills out and submits. The form properties are set to Send to other: "Custom ISAPI, NSAPI, CGI, OR ASP SCRIPTING. The method is "POST" and the action is "secondpage.asp". I had to go this route because...
7
2537
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. This URL needs to open in a floating window if clicked. (this is for an administrator and so opening a small floater gives them more efficient access to the data that will be displayed). I now understand that because the ASP executes first, that...
1
5889
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 authentication. I have searched google and read some articles including: http://support.microsoft.com/default.aspx?scid=kb;EN-US;q290899 http://support.microsoft.com/kb/234486/en-us
17
7651
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 following table that lists a building manager's name, e-mail address and their building, is there a way that I can automate this to send these monthly e-mails from Outlook. Ideally this would be a click one button type of action:
19
2220
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 another page after certain validation. it's ok when i use the url to do the testing... the validation part works fine... scenario as below: if situation a, echo abc if situation b, echo abc then refresh to another page.
6
2986
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 them. to be more clear we process this purpose we serve this to the student in the university. how?? student will send a message that contains his name,id and request by format the server want such as zaina-20024008-grade. the grade is the request...
0
9691
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10507
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...
1
10255
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
10036
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...
1
7582
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
5607
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4150
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3765
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.