By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,943 Members | 1,875 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,943 IT Pros & Developers. It's quick & easy.

Faking Posted Variables

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.