I'm really not good with the ereg stuff; I wouldn't even know where to 
start.  It's really quite simple what I need to have happen.

*.DOMAIN.COM/*.* needs to access /index.php

My network handles multiple domains/subdomains; so it's important it can 
work with them all.  Any ideas?


----Original Message Follows----
From: Miguel Cruz <[EMAIL PROTECTED]>
To: "[ rswfire ]" <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] form posting to a fake page (another idea)
Date: Wed, 17 Apr 2002 16:29:40 -0500 (CDT)

Have a look at http://httpd.apache.org/docs/misc/rewriteguide.html which
gives countless examples of using mod_rewrite rules for this sort of
thing.

You can direct all requests to a single page and then let that page sort
things out as it pleases.

These are processed internal to the server without redirects (unless you
want to use a redirect) and POST data is preserved.

miguel

On Wed, 17 Apr 2002, [ rswfire ] wrote:
 > I'm not trying to make the page redirect anywhere.  I'm trying to create 
the
 > illusion of there being many pages when there is only one doing all the
 > work.
 >
 > For example:
 >
 > http://hsdnetwork.swifte.net/technicians.html
 >
 > The page, technicians.html, does not really exist.  The server knows this
 > and so calls(redirects) the root index.php file.  Why must it redirect?  
Why
 > can't Apache just substitute the index.php file without doing anything
 > else??  That's the real problem!  If it did that, the posted variables 
would
 > be available.
 >
 > If you click the submit button on this page, you will see what I have had 
to
 > do to get around this.  The action property is set to
 > "index.php?login=attempt&page=/technicians.html" when I would like the
 > action property to be "?login=attempt".
 >
 > This really shouldn't be so complicated!  :-)
 >
 >
 > ----Original Message Follows----
 > From: Miguel Cruz <[EMAIL PROTECTED]>
 > To: "[ rswfire ]" <[EMAIL PROTECTED]>
 > CC: [EMAIL PROTECTED]
 > Subject: Re: [PHP] form posting to a fake page
 > Date: Wed, 17 Apr 2002 16:00:17 -0500 (CDT)
 >
 > Your error handler would read them and then construct a redirect
 > containing the form data in querystring format.
 >
 > miguel
 >
 > On Wed, 17 Apr 2002, [ rswfire ] wrote:
 >  > $_POST[] variables do not exist on a redirected page; that's the 
problem!
 >  >
 >  > ----Original Message Follows----
 >  > From: Miguel Cruz <[EMAIL PROTECTED]>
 >  > To: "[ rswfire ]" <[EMAIL PROTECTED]>
 >  > CC: [EMAIL PROTECTED]
 >  > Subject: Re: [PHP] form posting to a fake page
 >  > Date: Wed, 17 Apr 2002 15:56:32 -0500 (CDT)
 >  >
 >  > On Wed, 17 Apr 2002, [ rswfire ] wrote:
 >  >  > It would still require some knowledge of the posted data.  If 
someone
 >  > clicks
 >  >  > a submit button, and it is posting to a page that doesn't really
 > exist,
 >  > then
 >  >  > when the index.php file gets called as a 404 errordocument, the 
posted
 >  >  > variables are already lost, so it wouldn't be possible to access 
the
 >  > posted
 >  >  > variables in any fashion.  The only possibility might be if Apache 
had
 >  > some
 >  >  > way of dealing with this scenario and I am not that familiar with 
how
 >  > Apache
 >  >  > works.  And so, that leaves me with the only workaround I do know,
 > post
 >  > to a
 >  >  > page that does exist!  It's just not the ideal solution, but it 
works.
 >  >
 >  > Well, depending on the quantity of posted data, you could go through
 >  > $_POST[] and turn them into GET args and pass them along to the
 >  > appropriate page (not that I really understand what you're trying to 
do).
 >  >
 >  > miguel
 >  >
 >  >
 >  >
 >  >
 >  >
 >  > _________________________________________________________________
 >  > Chat with friends online, try MSN Messenger: http://messenger.msn.com
 >  >
 >  >
 >
 >
 >
 >
 >
 > _________________________________________________________________
 > Get your FREE download of MSN Explorer at 
http://explorer.msn.com/intl.asp.
 >
 >
 >





_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to