Navigating page with PHP code :(

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zeeshan
Forum Newbie
Posts: 2
Joined: Fri Jul 15, 2005 1:33 am
Location: Abbottabad, Pakistan
Contact:

Navigating page with PHP code :(

Post by zeeshan »

Hi!

Well my problem is that I want to navigate to a page with PHP code, I know it how to do that by sending headers.

please let me know howto nagivate page with PHP code, with out using headers.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Please clarify what you're asking for. Navigating with PHP code? Do you mean using navigation links included in a file using require(); ?

Do you mean how to link to pages dynamically when certain variables are set?

Also, please post some code if you have any.
zeeshan
Forum Newbie
Posts: 2
Joined: Fri Jul 15, 2005 1:33 am
Location: Abbottabad, Pakistan
Contact:

Post by zeeshan »

Well i've developed a page that checks the password, and my problem is that if a user enters a password i've to show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
hope you understand my problem this time!rd, and my problem is that if a user enters a password i've to show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password&lt;br&gt;&quote;);
   echo(&quote;Please &lt;a href=login.php&gt;loers a password i've to show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!=&quote;password&quote;):
   echo(&quote;incorrect user/password&lt;br&gt;&quote;);
   echo(&quote;Please <a href=login.php>login</a&gat user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please &asage and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
hope you understand my problem this time!d a page that checks the password, and my problem is that if a user enters a password i've to show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
[/phd a page that checks the password, and my problem is that if a user enters a password i've to show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
hope you understand my problem this time!ters a password i've to show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
hope you understand my problem this time! show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!=&quote;password&quote;):
   echo(&quote;incorrect user/password&lt;br&gt;&quote;);
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //hemy problem is that if a user enters a password i've to show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.&quote;);
else:
   //here i want here the code to redirect the user.
endif;
hope you understand my problem this time!d5f4a3]
if($pass!="password"):
echo("incorrect user/password<br>");
echo("Please <a href=login.php>login</a> with correct info.&quote;);
else:
//here i want here the code to redirect themp;amp;lt;a href=login.php>login</a> with correct info.");
else:
//here i want here the code to redirect the user.
endif;


hope you understand my problem this time! checks the password, and my problem is that if a user enters a password i've to show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
hope you understand my problem this time!"incorrect user/password<br>");
echo("Please <a href=login.php>login&lt;/a&gt; with correct info.&quote;);
else:
//here i want here the code to redirect the user.
endif;


hope you understanhp>login</a> with correct info.");
else:
//here i want here the code to redirect the user.
endif;


hope you understand my problem this time!$pass!="password"):
echo("incorrect user/password<br>");
echo("Please <a href=login.php>login</a> with correct info.");
else:
//herpassword<br>");
echo("Please <a href=login.php>login</a> with correct info.");
else:
//here i want here the code to redirect the user.
endif;


hope you understand my problem this time!problem this time!d a page that checks the password, and my problem is that if a user enters a password i've to show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
hope you understand my problem this time!ith correct info.");
else:
//here i want here the code to redirect the user.
endif;


hope you understand my problem this time!word, and my problem is that if a user enters a password i've to show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
[/ph.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
hope you understand my problem this time!ssword, and my problem is that if a user enters a password i've to show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here ord"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
hope you understand my problem this time!
if($pass!="password"):
echo("incorrect user/password<br>");
echo("Please <a href=login.php>login</a> with correct info.");
else:
//here i want here the code to redirect the user.
endif;


hope you understand my problem this time!
x4t
Forum Newbie
Posts: 8
Joined: Wed Jul 06, 2005 9:53 am
Location: Netherlands
Contact:

Post by x4t »

zeeshan wrote:Well i've developed a page that checks the password, and my problem is that if a user enters a password i've to show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
hope you understand my problem this time!

Code: Select all

echo '<meta http-equiv="refresh" content="3; yourpage.php />';
Something like this? page that checks the password, and my problem is that if a user enters a password i've to show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
hope you understand my problem this time![/quotroblem is that if a user enters a password i've to show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!=&quote;password&quote;):
   echo(&quote;incorrect user/password&lt;br&gt;&quote;);
   echo("Please <a href=login.php>login&lt;/a&gt; with correct info.&quote;);
else:
   //here i want here the codeow a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
[/php:1:8d3 password i've to show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
hope you understand my problem this time![/quote]

Code: Select all

echo '"zeeshan"]Well i've developed a page that checks the password, and my problem is that if a user enters a password i've to show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!=&quote;password&quote;):
   echo(&quote;incorrect user/password&lt;br&gt;&quote;);
   echo(&quote;Please &lt;a href=login.php&gt;login&lt;/a&gt; with correct info.&quote;);
else:
   //here i want here the code to redirect the user.
endif;
hope you understand my problem this time![/quote]

Code: Select all

echo '&lt;meta http-equiv=&quote;refresh&quote; content=&quote;3; yourpage.php "zeeshan"]Well i've developed a page that checks the password, and my problem is that if a user enters a password i've to show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
hope you understand my problem this time![/quote]

Code: Select all

echo '<meta http-equiv="refresh" content="3; yourpage.php />';
Something like this?em this time![/quote]

Code: Select all

echo '<meta http-equiv="refresh" content="3; yourpage.php />';
Something like this?problem is that if a user enters a password i've to show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
hope you understand my problem this time![/quote]

Code: Select all

echo '<meta http-equiv="refresh" content="3; yourpage.php />';
[/php:1:er enters a password i've to show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!=&quote;password&quote;):
   echo(&quote;incorrect user/password&lt;br>");
   echo("Please <a href=login.php>login</a> with correct info.&at checks the password, and my problem is that if a user enters a password i've to show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
hope you understand my problem this time![/quote]

Code: Select all

echo '<meta http-equiv="refresh" content="3; yourpage.php />';
Something like this?that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
hope you understand my problem this time![/quote]

Code: Select all

echo '<meta http-equiv="refresh" content=&qu   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
hope you understand my problem this time![/quote]

Code: Select all

echo '<meta http-equiv="refresh" content="3; yourpage.php />';
Something like this?l i've developed a page that checks the password, and my problem is that if a user enters a password i've to show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
hope you understand my problem this time![/quote]

Code: Select all

echo '<meta http-equiv="refresh" content="3; yourpage.php />';
Something like this?sword"):
echo("incorrect user/password<br>");
echo("Please <a href=login.php&gt;login&lt;/a&gt; with correct info.&quote;);
else:
//here i want here the code to redirect the user.
endif;


hope you understand my problem this time![/quote]

Code: Select all

echo '<meta http-equiv="refresh" content="3; yourpage.php />';
e <a href=login.php>login</a> with correct info.");
else:
//here i want here the code to redirect the user.
endif;


hope you understand my problem this time![/quote]

Code: Select all

echo '<meta http-equiv="refresh" content="3; yourpage.php />';
Something like this?;


Something like this?:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
hope you understand my problem this time![/quoteo("incorrect user/password<br>");
echo("Please <a href=login.php>login</a> with correct info.");
else:
//here i want here the code to redirect the user.
endif;


hope you understand my problem this time![/quote]

Code: Select all

echo '<meta http-equiv="refresh" content="3; yourpage.php />';
Something like this?]

hope you understand my problem this time![/quote]

Code: Select all

echo '<meta http-equiv="refresh" content="3; yourpage.php />';
Something like this?"zeeshan"]Well i've developed a page that checks the password, and my problem is that if a user enters a password i've to show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
hope you understand my problem this time![/quote]

Code: Select all

echo '<meta http-equiv="refresh" content="3; yourpage.php />';
Something lik</a> with correct info.");
else:
//here i want here the code to redirect the user.
endif;


hope you understand my problem this time![/quote]

Code: Select all

echo '<meta http-equiv="refresh" content="3; yourpage.php />';
Something like this? a page that checks the password, and my problem is that if a user enters a password i've to show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
hope you understand my problem this time![/quote]

Code: Select all

echo '&lt;meta http-equiv=&quote;refresh&quote; content=&quote;3; yourpage.php  or somewhat like that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
hope you understand my problem this time![/quote]

Code: Select all

echo '<meta http-equiv="refresh" content="3; yourpage.php />';
Something like this?ed a page that checks the password, and my problem is that if a user enters a password i've to show a message and redirect that user to a new page or somewhat like that.

e.g:

Code: Select all

if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
[/php:1:8d3c86604
if($pass!="password"):
   echo("incorrect user/password<br>");
   echo("Please <a href=login.php>login</a> with correct info.");
else:
   //here i want here the code to redirect the user.
endif;
hope you understand my problem this time![/quote]

Code: Select all

echo '<meta http-equiv="refresh" content="3; yourpage.php />';
Something like this?
Post Reply