Re: Creating a "nice" link

From: Date: Thu, 18 Apr 2002 22:21:31 +0000
Subject: Re: Creating a "nice" link
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-13182@lists.php.net to get a copy of this message
Hiya... In case you can't get sessions working, you could use javascript to post a form to the next page... (messy I know...) <form name="form1" method="post" action="nextPage.php"> <input type="hidden" name="variable1" value="<?=$var1?>"> </form> <a href="" onClick="document.form1.submit(); return false">Next page</a> I'm not too sure about cross browser compatibility though, you might want to try in on Netscape and IE just in case. Hope that helps... Matt "R.S. Herhuth" <ronherhuth@pop.mindspring.com> wrote in message news:3CBEC330.E6BEF96E@pop.mindspring.com... > > I am creating a few links on the fly that have to pass variables to the > next page: > > echo '<a href="nextPage.php?variable1=$var1">next page</a>' > > The problem is that I don't want that information to appear in the > address field (more like a method=post instead of a method=get). How > can I do that? > > I was trying to use sessions under W2k, php4, Apache and all my pages > hang and never load once I start the session so I can't use sessions :-( > > Any ideas? > > Thanks, > Ron

« previous php.windows (#13182) next »