Ask a Question related to PHP Development, Design and Development.
-
Steve Robbins #1
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?
Steve Robbins Guest
-
iterate through POSTed variables
Is there a way to iterate the POSTed variable to a page? A means by which I can see what variables HAVE been POSTed ? -Ike -
#25693 [NEW]: No access to posted variables via socket connection
From: a dot erler at brain-at-work dot de Operating system: Debian PHP version: 4.3.1 PHP Bug Type: Sockets related Bug... -
passthru loses php posted variables
Anyone come across something like this before? I have made a little test script as follows: <? header ("Content-Type: application/pdf");... -
problem: get variables, which are 'posted' from a form
my problem is, to get variables, which are 'posted' from a form! Please help... 1. i read in mysql and produce a table with rows, which include a... -
#22773 [Com]: posted form variables mixed
ID: 22773 Comment by: roarke dot gaskill at cornerstone dot net Reported By: joe at mcknight dot de Status: ... -
Matthias Esken #2
Re: Faking Posted Variables
Steve Robbins <srobbins@no.spam.charter.net> schrieb:
I'd suggest that you make a GET-Request to a new script, which will make> 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.
a POST-Request to your existing script.
The FAQ of the german speaking PHP newsgroups has a nice example for a
POST-Request. Read [url]http://www.dclp-faq.de/q/q-code-post.html[/url], 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 <kendrvsv1ut1gugqudiofvo9e6q4u4f5mo@4ax.com> for
details.
:-)
--
Who are we? What are we doing here? - Amnesy International
Matthias Esken Guest
-
André Nęss #3
Re: Faking Posted Variables
Steve Robbins:
No. You can try to use cURL: [url]http://www.php.net/curl[/url]> 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?
There is also Snoopy: [url]http://snoopy.sourceforge.net/[/url]
André Nęss
André Nęss Guest
-
Steve Robbins #4
Re: Faking Posted Variables
On Mon, 17 Nov 2003 18:31:57 +0000, André Nęss
<andrena.spamreallysucks@ifi.uio.no> wrote:Thanks! I will look these over.> Steve Robbins:
>
> No. You can try to use cURL: [url]http://www.php.net/curl[/url]
>
> There is also Snoopy: [url]http://snoopy.sourceforge.net/[/url]
Steve Robbins Guest
-
Steve Robbins #5
Re: Faking Posted Variables
On Mon, 17 Nov 2003 18:39:13 +0100, Matthias Esken
<muelleimer2003nospam@usenetverwaltung.org> wrote:Thanks, I'll play around with that.> The FAQ of the german speaking PHP newsgroups has a nice example for a
> POST-Request. Read [url]http://www.dclp-faq.de/q/q-code-post.html[/url], ignore
> the short german text and just have a look at the code. You should be
> able to understand how it works.
I ignore trash talk in the groups. All help is good and I appreciate> 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 <kendrvsv1ut1gugqudiofvo9e6q4u4f5mo@4ax.com> for
> details.
> :-)
your input.
Steve Robbins Guest
-
k-caj #6
Re: Faking Posted Variables
Steve Robbins wrote:
this works for me :> 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?
[url]ftp://ftp.holotech.net/postit.zip[/url]
:)
--
--- --- --- --- --- --- ---
[email]jack@croatiabiz.com[/email]
k-caj Guest



Reply With Quote

