Forum Moderators: coopster

Message Too Old, No Replies

Hiding the URL

         

Kronos

2:05 pm on Jul 31, 2003 (gmt 0)

10+ Year Member



Hi,

does anybody know how to hide the URL in PHP? What I mean, is, let's say my URL is www.test.com/submit.php and I'm going to www.test.com/answer.php, but I want to visitor to see only www.test.com the whole time he's on the website. Anyone know of a way to do that?

Thanks!

bcc1234

2:11 pm on Jul 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Read about fpassthrough() or inlclude() or require().

You can include different files based on different conditions and the visitors won't see the original filenames.

Nick_W

2:13 pm on Jul 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could do this with frames in the html I think but I'm not certain...

Nick

vincevincevince

2:14 pm on Jul 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



if sending a form:

set your form action as $PHPSELF (NOT answer.php) and put the following line at the top of question.php:


<?php if ($_REQUEST['submit']) {include ("answer.php");die();}?>

if using a hyperlink click:

at the very top of the question.php file put:


<?php
session_start();
if ($_SESSION['submit']) {include ("answer.php");die();}
$_SESSION['seen']=1;
?>

use
$PHPSELF
in your question.php as the hyperlink location (or hardcode it to question.php)