Re: Button to go to URL?

From: Date: Wed, 03 Jan 2001 16:45:57 +0000
Subject: Re: Button to go to URL?
Groups: php.general 
Request: Send a blank email to php-general+get-32513@lists.php.net to get a copy of this message
First of all when you're using echo, there is no need to print <?php... infact though I haven't tried it, it would be printed the same way as you wrote it! so this is what you want : echo '<form action="'.$PHP_SELF.'"> <input type="submit" value="goto same page without variables"></form>'; That should do what you want. --- Paul Wilkinson <itmanager@chinookmultimedia.com> wrote: > Hi, > > How does one code a button to go to a URL WITHOUT > displaying a link, and > without passing variables? > The following goes to the exact same page. I want > to go to the same page > without variables. > e.g. > if($gotoURL) { > echo "<FORM METHOD=\"post\" action=\"<?php echo > $PHP_SELF; ?>\" > name=\"ModifyRecords\">"; > > } > > Thanks! > Paul > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-general-unsubscribe@lists.php.net > For additional commands, e-mail: > php-general-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > ===== To Find Out More About Me : http://mukul.tsx.org/ __________________________________________________ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/

« previous php.general (#32513) next »