473,406 Members | 2,281 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,406 software developers and data experts.

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 2948
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.spam.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.uio.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******************@usenetverwaltung.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
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. ...
2
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...
3
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...
3
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...
20
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...
3
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...
1
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...
1
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
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....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...

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.