Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 07-02-2004, 07:27 PM
Contributing Member
Latest Blog:
None

 
Join Date: 06-04-04
Posts: 197
iTrader: 0 / 0%
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
 
Reply With Quote
  #2 (permalink)  
Old 07-02-2004, 07:39 PM
kwvarga's Avatar
v7n Mentor
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 2,527
iTrader: 0 / 0%
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
 
Reply With Quote
  #3 (permalink)  
Old 07-02-2004, 07:49 PM
imaginemn's Avatar
v7n Mentor
Latest Blog:
None

 
Join Date: 02-18-04
Location: Brownsville, Texas
Posts: 1,356
iTrader: 0 / 0%
You can try the following.

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

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

imaginemn
__________________
Brownsville Web Design , McAllen Website Design, Harlingen Web Design
Website Design | Web Development | eCommerce | Search Engine Optimization (SEO)
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > 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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
string searching livecoder Tech Talk 0 08-29-2007 11:14 PM
breaking apart a string for regex I like pie Coding Forum 3 11-14-2006 10: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


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 12:21 PM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.