Hey friends i just wanna know how can we change the url like if i have a index page now i want to include the login page on click to a link now the url should be index.php?action=login
tarunfuture
0
Newbie Poster
Recommended Answers
Jump to PostYou have to use switch() inside your index.php, an example:
<?php $action = $_GET['action']; switch($action) { case 'login': # code for login page break; case 'index': default: # code for home page } ?>
Jump to PostMaybe I did not understand your question, can you paste the code?
All 7 Replies
cereal
1,524
Nearly a Senior Poster
Featured Poster
tarunfuture
0
Newbie Poster
cereal
1,524
Nearly a Senior Poster
Featured Poster
tarunfuture
0
Newbie Poster
diafol
tarunfuture
0
Newbie Poster
diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.