[PHP] Re: question about direct access to url

2008-03-18 Thread Donn Ingle
Use sessions or (not as secure) pass a hidden form field along from form.php to thankyou.php. You can look for it in thankyou.php and if it's not there then you know something's wrong. You'd check the $_POST array for your secret field and value. \d -- PHP General Mailing List (http://www.php

[PHP] Re: Re: help on using 'request_uri' to make a front-end site

2008-03-18 Thread Donn Ingle
Richard Heyes wrote: > The forward slash at the start causes your browser to ignore whatever > your current path is, albeit remain on the current domain. Okay, I think I am getting confused by this ~donn/ virtual path thing. I will try your suggestion it looks good. Thanks. \d -- PHP General M

[PHP] Re: help on using 'request_uri' to make a front-end site

2008-03-18 Thread Donn Ingle
Shawn McKenzie wrote: > Does seem strange.  Try: > > http://localhost/~donn/blah/index.php"; /> > > Then just use /home, /use1 etc...  Might work. Right, I'll give it a go. It's not much different from wiring-in a php var naming the base with {$base}/use1 being the form. The thing that would hel

[PHP] Re: help on using 'request_uri' to make a front-end site

2008-03-17 Thread Donn Ingle
Shawn McKenzie wrote: > Use /index.php instead of index.php maybe... I assume you meant in the tag. I tried that and the URL (when you mouse-over the link) becomes [http://localhost/index.php] which is not anywhere near where the files live. I must say I am rather confused by this situation, but

[PHP] help on using 'request_uri' to make a front-end site

2008-03-17 Thread Donn Ingle
Hi, I have been trying to get a little templating thing going and I want everything to pass through a single index.php file which then decides what page is wanted and includes them. The scheme is to go to a url like [http://localhost/~donn/blah/] which serves index.php in that dir. That includes