I have been using php for my design, Buy i wouldn't, creating dymanic url is a problem for me. Now I need it and urgently. Please guy I need your help. Example: http://www.daniweb.com/forums/newthread.php?do=newthread&f=17
sparkles_links 0 Newbie Poster
Recommended Answers
Jump to PostCan you please clarify ? Preferably with an example.
Jump to Postindex.php <?php if($_GET['id'] == 1){ echo 'page 1'; }elseif($_GET['id'] == 5){ echo 'contact page'; }else{ echo 'page 2'; } ?>
---------------------------------
index.php?id=1 -> page 1
index.php -> page 2
index.php?id=5 -> contact page
All 5 Replies
pritaeas 2,211 ¯\_(ツ)_/¯ Moderator Featured Poster
sparkles_links 0 Newbie Poster
Biiim 182 Junior Poster
sparkles_links 0 Newbie Poster
Biiim 182 Junior Poster
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.