Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Ezilon Directory   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 07-02-2004, 07:27 PM   #1 (permalink)
Contributing Member
 
Join Date: 06-04-04
Posts: 233
iTrader: 0 / 0%
Latest Blog:
None

GeXus is a jewel in the roughGeXus is a jewel in the roughGeXus is a jewel in the roughGeXus is a jewel in the roughGeXus is a jewel in the roughGeXus is a jewel in the roughGeXus is a jewel in the roughGeXus is a jewel in the rough
Including a string

Anyone know how you can include a string.. or how to get rid of the string and make it a single page..

For example.. When using index.php?qry=A
How would I change this to A.php
__________________
I get top rankings by using DigitalPoint Co-Op
GeXus is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 07-02-2004, 07:39 PM   #2 (permalink)
Possible Terrorist
 
kwvarga's Avatar
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
iTrader: 0 / 0%
Latest Blog:
A+ Certification

kwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web pro
Send a message via AIM to kwvarga
PHP or HTaccess?

PHP:[code:1:f3288111c1]<?php
$qry = "Default";
if (isset($_GET['qry'])) $qry = $_GET['qry'];
Header("Location: " . $qry . ".php");
exit();
?>[/code:1:f3288111c1]

htaccess is a little more complicated
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
kwvarga is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-02-2004, 07:49 PM   #3 (permalink)
v7n Mentor
 
imaginemn's Avatar
 
Join Date: 02-18-04
Location: Minneapolis, Minnesota
Posts: 1,935
iTrader: 0 / 0%
imaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to all
Send a message via MSN to imaginemn Send a message via Yahoo to imaginemn Send a message via Skype™ to imaginemn
You can try the following.

[code:1:533c50f2d7]<?php
$link = $_GET['qry'];

header("Location: ".$link.".php");
?> [/code:1:533c50f2d7]

imaginemn
__________________
Imagine Creative Services
Design : Marketing : Multimedia : More
imaginemn is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
string searching livecoder Computers & Internet 0 08-29-2007 11:14 PM
breaking apart a string for regex I like pie Coding Forum 3 11-14-2006 11:22 PM
All Query String PR is predicted? Johan007 Google Forum 8 10-12-2004 09:17 AM
Numeric String Pipeline-Webdesign Coding Forum 11 06-16-2004 10:59 AM
Yet another URL string question, case nextGoal100kVisitors SEO Forum 6 05-17-2004 08:02 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 11:08 AM.
© Copyright 2008 V7 Inc