Re: how to change index.php?passwd to index.php in the address bar

From: Date: Wed, 13 Aug 2003 10:33:43 +0000
Subject: Re: how to change index.php?passwd to index.php in the address bar
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-159418@lists.php.net to get a copy of this message
Thanks for the message. Actually I tried only html files in the beginning. Let me explain my problem. I want to open a new window in a link with a function as function newwindow() { window.open("/home.php?userid=user1","Homepage"); } when I click the link now the address bar has the following address http://localhost/home.php?userid=user1 How can I remove the "?userid=user1" in the address bar. I used method = POST for a button to go to new page. That worked well. So with a link how can I achieve this. -Murugesan ----- Original Message ----- From: "David Otton" <phpmail@jawbone.freeserve.co.uk> To: "murugesan" <murugesan@visolve.com> Cc: "PHP List" <php-general@lists.php.net> Sent: Wednesday, August 13, 2003 3:48 PM Subject: Re: [PHP] how to change index.php?passwd to index.php in the address bar > On Wed, 13 Aug 2003 14:18:13 +0530, you wrote: > > In your first post you say > > > When go to a new page from login page the address bar has > >localhost/regsuccess.php?password="ASD" > > But in your second, > > >Method Not Allowed > >The requested method POST is not allowed for the URL /products.html. > > Apache/1.3.19 Server at localhost > >Any one is there to reaolve my problem > > These are different files (regsuccess.php and products.html). It sounds like > the action attribute on your form is pointing to the wrong place. By default > Apache won't let HTML files deal with POST data, for obvious reasons. > >

« previous php.general (#159418) next »