473,788 Members | 2,905 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Faking Posted Variables

I have played with this some unsuccessfully and can't find any
references to it on-line.

What I have is a forms-based application where I POST the form. This
was decided on because of security and the length limits of a URL. Now
I have a need where I would like to link to a form and "fake" some of
the variables that are normally posted.

For example, I have a form that normally comes up where the user
selects information from a combobox and on reload, the fields are then
automatically filled in. I would like to be able to go to that form
from other locations and fake the POST variable of the combobox so that
the form will fill in when they first access it.

Am I trying to do the impossible?
Jul 17 '05 #1
5 2975
Steve Robbins:
I have played with this some unsuccessfully and can't find any
references to it on-line.

What I have is a forms-based application where I POST the form. This
was decided on because of security and the length limits of a URL. Now
I have a need where I would like to link to a form and "fake" some of
the variables that are normally posted.

For example, I have a form that normally comes up where the user
selects information from a combobox and on reload, the fields are then
automatically filled in. I would like to be able to go to that form
from other locations and fake the POST variable of the combobox so that
the form will fill in when they first access it.

Am I trying to do the impossible?


No. You can try to use cURL: http://www.php.net/curl

There is also Snoopy: http://snoopy.sourceforge.net/

André Næss
Jul 17 '05 #2
Steve Robbins <sr******@no.sp am.charter.net> schrieb:
What I have is a forms-based application where I POST the form. This
was decided on because of security and the length limits of a URL. Now
I have a need where I would like to link to a form and "fake" some of
the variables that are normally posted.


I'd suggest that you make a GET-Request to a new script, which will make
a POST-Request to your existing script.

The FAQ of the german speaking PHP newsgroups has a nice example for a
POST-Request. Read http://www.dclp-faq.de/q/q-code-post.html, ignore the
short german text and just have a look at the code. You should be able
to understand how it works.
On the other hand you could just change your script and get the data fom
the $_REQUEST-array instead of the $_POST-array.

Regards,
Matthias

P.S.: You might want to wait for a solution from the genius "ww",
because I'm "one of those stupid people posting to news groups
that has NO clue what he's talking about".
See Message-Id <ke************ *************** *****@4ax.com> for
details.
:-)
--
Who are we? What are we doing here? - Amnesy International
Jul 17 '05 #3
On Mon, 17 Nov 2003 18:31:57 +0000, André Næss
<an************ *********@ifi.u io.no> wrote:
Steve Robbins:

No. You can try to use cURL: http://www.php.net/curl

There is also Snoopy: http://snoopy.sourceforge.net/


Thanks! I will look these over.

Jul 17 '05 #4
On Mon, 17 Nov 2003 18:39:13 +0100, Matthias Esken
<mu************ ******@usenetve rwaltung.org> wrote:
The FAQ of the german speaking PHP newsgroups has a nice example for a
POST-Request. Read http://www.dclp-faq.de/q/q-code-post.html, ignore
the short german text and just have a look at the code. You should be
able to understand how it works.
Thanks, I'll play around with that.
P.S.: You might want to wait for a solution from the genius "ww",
because I'm "one of those stupid people posting to news groups
that has NO clue what he's talking about".
See Message-Id <ke************ *************** *****@4ax.com> for
details.
:-)


I ignore trash talk in the groups. All help is good and I appreciate
your input.
Jul 17 '05 #5
Steve Robbins wrote:
What I have is a forms-based application where I POST the form. This
was decided on because of security and the length limits of a URL.
Now I have a need where I would like to link to a form and "fake"
some of the variables that are normally posted.
For example, I have a form that normally comes up where the user
selects information from a combobox and on reload, the fields are then
automatically filled in. I would like to be able to go to that form
from other locations and fake the POST variable of the combobox so
that the form will fill in when they first access it.
Am I trying to do the impossible?


this works for me :

ftp://ftp.holotech.net/postit.zip

:)

--
--- --- --- --- --- --- ---
ja**@croatiabiz .com
Jul 17 '05 #6

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

Similar topics

1
1865
by: btopenworld | last post by:
similar to a recently asked question - The scenario is that posted data from World Pay is to be used to construct one of two pages depending on the content of one of the posted variables. Could someone help with passing on posted data to another page. I have in mind loop which reads the posted data and reconstucts it to pass on using a redirect with a querystring - if such a thing is possible. Or is there an easier way?
2
3740
by: Mark Watkins | last post by:
suppose I have the following: -----------BEGIN page1.asp---------- <form method="post" action="page2.asp"> <select name="someData" size="1" class="smallbutton"> <option value="1">Whatever</option> </select> 'and a submit button </form> ----------END page1.asp--------------
3
1916
by: Chris Smith | last post by:
Good morning, Is there a good way to use JavaScript to send a form submission, but get back the response as a string, rather than loading it into a page? I could write the code to send the submission via XMLHttpRequest, but that seems hard... especially implementing multipart-encoded form submission such as required for file upload. Ideas?
3
2447
by: Marcus | last post by:
Hello all, I have written numerous functions that check all user entered data on my site via POST and GET. My question is this: once my data checks out as being valid, I sometimes store it in SESSION as I move between pages, and eventually use the values in SESSION to update my database. Do I need to re-check the values in SESSION to make sure they are still valid before updating the database? In other words, I know session data...
20
23114
by: Steve Jorgensen | last post by:
A while back, I started boning up on Software Engineering best practices and learning about Agile programming. In the process, I've become much more committed to removing duplication in code at a much finer level. As such, it's very frustrating to be working in VBA which lacks inheritance, one of the more powerful tools for eliminating duplication at the level I'm talking about. I've recently come up with a technique to emulate one...
3
3697
by: | last post by:
I am working on a web/webservice application that has a service layer. Most service methods will perform an access-check before executing. This check uses the IPrincipal credentials available in HttpContext.Current. This works great. My issue is that I need to write unit tests for those service methods. These tests then run outside of IIS, thus there is no HttpContext.Current available - and the servicemethod will not execute. The two...
1
1771
by: Simon | last post by:
Hi everyone, I have a quick question that I hope someone can help me with: I've made a user control that contains a text box and some validation functionality. This control has a few extra properties declared on it over and above that provided by the textbox. As I understand it, part of the process to make this work is, in the property accessor's for the properties that you wish to persist you add
1
957
by: manika | last post by:
How do I get a list of the values of variables posted by a form. The PHP equivalent to that probably is http_post_vars.Please help!!
2
2313
by: david | last post by:
I write JavaScript for client side computing in HTML file in ASPX design. However, I found that the variables declared in JavaScript are initialized again when the page post back to the server. Therefore, after that, the computation would be wrong. My question is how to keep the values of the JavaScript variables unchange when the page postback to the server. Thank you David
0
9656
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
9498
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
9967
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
8993
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
7517
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
6750
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
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4069
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
3670
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.