is there a better way to know from which php file the requestcomes from ??
is there a better way to know from which php file the requestcomes from ??
am 17.08.2009 11:17:30 von nashrul
This is a newbie question...
Let's say there are 3 php files, page1.php, page2.php and page3.php. Form
submission from page1.php or page2.php will take user to page3.php.
I know that we can use parameter that is appended in the action attribute of
the form (e.g
Re: is there a better way to know from which php file therequest comes from ??
am 17.08.2009 11:24:09 von Ashley Sheridan
On Mon, 2009-08-17 at 02:17 -0700, nashrul wrote:
> This is a newbie question...
> Let's say there are 3 php files, page1.php, page2.php and page3.php. Form
> submission from page1.php or page2.php will take user to page3.php.
> I know that we can use parameter that is appended in the action attribute of
> the form (e.g
Re: is there a better way to know from which php file the
am 17.08.2009 11:40:05 von kranthi
HTTP_REFERRER is transparent, but if can be messed with very easily. I
prefer use of $_SESSION vars if security is needed in my application
(epically when a page is shown after a POST request)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: is there a better way to know from which php file the request comes from ??
am 17.08.2009 19:04:44 von Ralph Deffke
If u need a solution to know where the request comes from on a certain
secure level u can use cookies.
u might also have run into pages on the web giving u hard readable images u
have to put into a form field. toghether with cookies these design gives u
1000% from where the form data come.
depends what security level u whant to implement
regards
ralph_deffke@yahoo.de
"nashrul" wrote in message
news:25003587.post@talk.nabble.com...
>
> This is a newbie question...
> Let's say there are 3 php files, page1.php, page2.php and page3.php. Form
> submission from page1.php or page2.php will take user to page3.php.
> I know that we can use parameter that is appended in the action attribute
of
> the form (e.g
Re: is there a better way to know from which php file therequest comes from ??
am 17.08.2009 20:18:25 von Ashley Sheridan
On Mon, 2009-08-17 at 19:04 +0200, Ralph Deffke wrote:
> If u need a solution to know where the request comes from on a certain
> secure level u can use cookies.
>
> u might also have run into pages on the web giving u hard readable images u
> have to put into a form field. toghether with cookies these design gives u
> 1000% from where the form data come.
>
> depends what security level u whant to implement
>
> regards
> ralph_deffke@yahoo.de
>
>
> "nashrul" wrote in message
> news:25003587.post@talk.nabble.com...
> >
> > This is a newbie question...
> > Let's say there are 3 php files, page1.php, page2.php and page3.php. Form
> > submission from page1.php or page2.php will take user to page3.php.
> > I know that we can use parameter that is appended in the action attribute
> of
> > the form (e.g
Re: is there a better way to know from which php file the
am 17.08.2009 21:11:51 von Ben Dunlap
> This is a newbie question...
> Let's say there are 3 php files, page1.php, page2.php and page3.php. Form
> submission from page1.php or page2.php will take user to page3.php.
> I know that we can use parameter that is appended in the action attribute of
> the form (e.g
Re: is there a better way to know from which php file therequest comes from ??
am 17.08.2009 22:36:41 von Tom Worster
On 8/17/09 5:24 AM, "Ashley Sheridan" wrote:
> On Mon, 2009-08-17 at 02:17 -0700, nashrul wrote:
>> This is a newbie question...
>> Let's say there are 3 php files, page1.php, page2.php and page3.php. Form
>> submission from page1.php or page2.php will take user to page3.php.
>> I know that we can use parameter that is appended in the action attribute of
>> the form (e.g
Re: is there a better way to know from which php file therequest comes from ??
am 17.08.2009 22:48:21 von Tom Worster
On 8/17/09 5:17 AM, "nashrul" wrote:
> This is a newbie question...
> Let's say there are 3 php files, page1.php, page2.php and page3.php. Form
> submission from page1.php or page2.php will take user to page3.php.
> I know that we can use parameter that is appended in the action attribute of
> the form (e.g
Re: is there a better way to know from which php file the requestcomesfrom ??
am 17.08.2009 23:31:39 von Shawn McKenzie
nashrul wrote:
> This is a newbie question...
> Let's say there are 3 php files, page1.php, page2.php and page3.php. Form
> submission from page1.php or page2.php will take user to page3.php.
> I know that we can use parameter that is appended in the action attribute of
> the form (e.g
Re: is there a better way to know from which php file the
am 18.08.2009 00:04:26 von Eddie Drapkin
On Mon, Aug 17, 2009 at 5:31 PM, Shawn McKenzie wrote=
:
> nashrul wrote:
>> This is a newbie question...
>> Let's say there are 3 php files, page1.php, page2.php and page3.php. For=
m
>> submission from page1.php or page2.php will take user to page3.php.
>> I know that we can use parameter that is appended in the action attribut=
e of
>> the form (e.g
Re: is there a better way to know from which php file the requestcomesfrom ??
am 18.08.2009 00:29:53 von Shawn McKenzie
Eddie Drapkin wrote:
> On Mon, Aug 17, 2009 at 5:31 PM, Shawn McKenzie wrote:
>> nashrul wrote:
>>> This is a newbie question...
>>> Let's say there are 3 php files, page1.php, page2.php and page3.php. Form
>>> submission from page1.php or page2.php will take user to page3.php.
>>> I know that we can use parameter that is appended in the action attribute of
>>> the form (e.g
Re: is there a better way to know from which php file the request comes from ??
am 18.08.2009 01:16:11 von Ralph Deffke
I was reviewing ur post, and thinking u might talk about a pretty common
application like in a sequence of order form u want first the billing data
then the shipping data. for both u need just the same form u then process on
script3.
in such a case it doesn't matter if u use hidden fields or url parameter,
GET or POST to run different code for each form data in sript 3 neither can
I see a security issue here. u processing only the variables u defined. and
what does it matter if you have an hidden field like stepp=1 or stepp=2 and
a bored user put just for fun stepp=99 to piek ur ass. just take care in ur
code for it and display something (e.g. "hang on , big brother is watching
u")
this is good practice and common all over. any PHPer got his own way to do
it, and I think u r in the process to find urs. just try what u like best.
if you have a real security issue come back with more details about the
SECURITY issue and I m shure the group will have a good brainstorm going
again.
have fun
ralph_deffke@yahoo.de
"nashrul" wrote in message
news:25003587.post@talk.nabble.com...
>
> This is a newbie question...
> Let's say there are 3 php files, page1.php, page2.php and page3.php. Form
> submission from page1.php or page2.php will take user to page3.php.
> I know that we can use parameter that is appended in the action attribute
of
> the form (e.g