how to pass POST variables without a form?
how to pass POST variables without a form?
am 28.01.2008 20:50:38 von yodel_dodel
Is there a way to pass (POST) data from one page (script) to another
other than using a FORM? I don't want to use GET either.
--
Gregor mit dem Motorrad auf Reisen
http://hothaus.de/greg-tour/
Re: how to pass POST variables without a form?
am 28.01.2008 21:04:37 von Courtney
Greg N. wrote:
> Is there a way to pass (POST) data from one page (script) to another
> other than using a FORM? I don't want to use GET either.
Well not really, but its perfectly possible to have a form with no
submit button and no user accessible variables.
So whose to know if its a form or not?
Re: how to pass POST variables without a form?
am 28.01.2008 21:11:06 von yodel_dodel
The Natural Philosopher wrote:
> its perfectly possible to have a form with no
> submit button and no user accessible variables.
Nice! That's what I need! But if there is no submit button, how does
the transfer get triggered?
--
Gregor mit dem Motorrad auf Reisen
http://hothaus.de/greg-tour/
Re: how to pass POST variables without a form?
am 28.01.2008 21:22:54 von zeldorblat
On Jan 28, 2:50 pm, "Greg N." wrote:
> Is there a way to pass (POST) data from one page (script) to another
> other than using a FORM? I don't want to use GET either.
> --
> Gregor mit dem Motorrad auf Reisenhttp://hothaus.de/greg-tour/
Curl:
Re: how to pass POST variables without a form?
am 28.01.2008 22:59:44 von flowover
On Jan 28, 12:04 pm, The Natural Philosopher wrote:
> Greg N. wrote:
> > Is there a way to pass (POST) data from one page (script) to another
> > other than using a FORM? I don't want to use GET either.
>
> Well not really, but its perfectly possible to have a form with no
> submit button and no user accessible variables.
>
> So whose to know if its a form or not?
Never assume the end user does not have 'access' to values that you
echo as hidden fields. Security disaster waiting to happen.
Re: how to pass POST variables without a form?
am 28.01.2008 23:43:03 von Jerry Stuckle
Greg N. wrote:
> Is there a way to pass (POST) data from one page (script) to another
> other than using a FORM? I don't want to use GET either.
Session.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Re: how to pass POST variables without a form?
am 28.01.2008 23:54:03 von yodel_dodel
flowover wrote:
> Never assume the end user does not have 'access' to values that you
> echo as hidden fields. Security disaster waiting to happen.
It's not that the data being passed is in any way secret. But i's just
too much text for GET.
Anyway, does anybody know of a way to submit a hidden form without a
submit button and without Javascript?
--
Gregor mit dem Motorrad auf Reisen
http://hothaus.de/greg-tour/
Re: how to pass POST variables without a form?
am 29.01.2008 01:14:45 von Kailash Nadh
On Jan 28, 10:54 pm, "Greg N." wrote:
> flowover wrote:
> > Never assume the end user does not have 'access' to values that you
> > echo as hidden fields. Security disaster waiting to happen.
>
> It's not that the data being passed is in any way secret. But i's just
> too much text for GET.
>
> Anyway, does anybody know of a way to submit a hidden form without a
> submit button and without Javascript?
>
> --
> Gregor mit dem Motorrad auf Reisenhttp://hothaus.de/greg-tour/
hm, if you are trying to post variables from one script to another
(server side, PHP), you could use fsockopen() to POST data.
Take a look at : http://www.scriptschool.com/news/20050409/22/
--
Kailash Nadh | http://kailashnadh.name
Re: how to pass POST variables without a form?
am 29.01.2008 12:50:51 von Courtney
Greg N. wrote:
> The Natural Philosopher wrote:
>> its perfectly possible to have a form with no submit button and no
>> user accessible variables.
>
> Nice! That's what I need! But if there is no submit button, how does
> the transfer get triggered?
>
Javascript works pretty well..onclick="submit_my_form()" ;-)
Also the enter key generally works...
Re: how to pass POST variables without a form?
am 29.01.2008 12:51:57 von Courtney
flowover wrote:
> On Jan 28, 12:04 pm, The Natural Philosopher wrote:
>> Greg N. wrote:
>>> Is there a way to pass (POST) data from one page (script) to another
>>> other than using a FORM? I don't want to use GET either.
>> Well not really, but its perfectly possible to have a form with no
>> submit button and no user accessible variables.
>>
>> So whose to know if its a form or not?
>
> Never assume the end user does not have 'access' to values that you
> echo as hidden fields. Security disaster waiting to happen.
Oh, sure. You can source dump and read em.
I thought it was an appearance issue, not a security one.
Re: how to pass POST variables without a form?
am 29.01.2008 12:54:32 von Courtney
Greg N. wrote:
> flowover wrote:
>
>> Never assume the end user does not have 'access' to values that you
>> echo as hidden fields. Security disaster waiting to happen.
>
> It's not that the data being passed is in any way secret. But i's just
> too much text for GET.
>
> Anyway, does anybody know of a way to submit a hidden form without a
> submit button and without Javascript?
>
Well cookies. I.e. sessions.Or use GET.
Store all the data on the server and give it a tag/sesion ID, and the
next page that gets invoked pass that tag id along and read all the data
off the server
Re: how to pass POST variables without a form?
am 29.01.2008 22:54:47 von flowover
On Jan 28, 12:22 pm, ZeldorBlat wrote:
> On Jan 28, 2:50 pm, "Greg N." wrote:
>
> > Is there a way to pass (POST) data from one page (script) to another
> > other than using a FORM? I don't want to use GET either.
> > --
> > Gregor mit dem Motorrad auf Reisenhttp://hothaus.de/greg-tour/
>
> Curl:
>
>
Look into this. You can only submit a form on an enduser's machine
with javascript. If you're looking to share the data on one server,
use sessions. If you need to post a form to another server, use
curl.
Re: how to pass POST variables without a form?
am 30.01.2008 12:41:38 von yodel_dodel
flowover wrote:
> If you're looking to share the data on one server,
> use sessions. If you need to post a form to another server, use
> curl.
I have looked into session. it does what I want very nicely. Thank you.
--
Gregor mit dem Motorrad auf Reisen
http://hothaus.de/greg-tour/