Useful Links
You will need to login before you can post. Please enter the following details:
User Name:    Password: 
Looking for something?
Want to be more precise?
Advanced Search
 

Go Back  NetBusinessTalk.com > Developing an Internet Business > Website Coding & Technology > URL Variables... How?


Reply
 
LinkBack Thread Tools Display Modes
Old 06-02-06, 07:31 AM   #1
Advanced Member
 
Baby Boy's Avatar
 
Join Date: Apr 2006
Posts: 874
Default URL Variables... How?


I need some assistance... everybody knows PHP URL Variables. Like, http://www.yourdomain.com/index.php?p=95839583 blah blah and so on, how would I go about doing something like that cause I am seriously seriously lost right now, and I KNOW PHP... this is a tragedy

__________________
CashTalkz Dot Net - Participate in the Forum and Earn Money!

Need Website Work ... PM Me If Your Interested!! I am available as of 9-6-2007
Baby Boy is offline   Reply With Quote
Old 06-02-06, 08:30 AM   #2
Vi5
Active Member
 
Join Date: Apr 2006
Posts: 62
Default Re: URL Variables... How?

Is your content stored in a database or files?

If its files use
Something like:
$p = $_REQUEST['p'];
if $p.html exists
include $p.html
else echo error

If its databases use get blah where blah is $p

I probably confused you but I don't use PHP much, I ony edit scripts.
__________________
WordPress themes | Tableless Coder | Andy's blog - NOW BLOGGING
Vi5 is offline   Reply With Quote
Old 06-03-06, 12:35 AM   #3
Advanced Member
 
Baby Boy's Avatar
 
Join Date: Apr 2006
Posts: 874
Default Re: URL Variables... How?

Well I do have a "module" application addon that could specifically work but I am not fully 100% basing everything off it. I am looking to enable it for database based variables... why? Because I am planning to integrate/building a bunch of scripts to run on my online radio station (using a small article management system or CMS or something, member's section, a custom program that comes with the broadcasting software.)

My estimate time for the official release of Shine 98... 2 weeks
__________________
CashTalkz Dot Net - Participate in the Forum and Earn Money!

Need Website Work ... PM Me If Your Interested!! I am available as of 9-6-2007
Baby Boy is offline   Reply With Quote
Old 06-03-06, 07:52 AM   #4
Active Member
 
Michael C's Avatar
 
Join Date: Mar 2006
Posts: 50
Default Re: URL Variables... How?

Quote:
Originally Posted by Vi5
Is your content stored in a database or files?

If its files use
Something like:
$p = $_REQUEST['p'];
if $p.html exists
include $p.html
else echo error

If its databases use get blah where blah is $p

I probably confused you but I don't use PHP much, I ony edit scripts.
Whatever you do don't use $_REQUEST['p'] use $_GET['p']. If you need more help in particular post what you have coded so far and I will see if I can help you.
Michael C is offline   Reply With Quote
Old 06-03-06, 04:41 PM   #5
Busy Member
 
Chris Gwynne's Avatar
 
Join Date: Feb 2006
Location: Wales
Posts: 311
Default Re: URL Variables... How?

You can always search HotScripts or any other of the 1000's of PHP code websites scattered about the 'net.
Chris Gwynne is offline   Reply With Quote
Old 06-03-06, 04:51 PM   #6
Advanced Member
 
Baby Boy's Avatar
 
Join Date: Apr 2006
Posts: 874
Default Re: URL Variables... How?

^^ Yeah, I'm reading through a couple tutorials right now, and about the whole POST, GET thing, the tutorials I have read stated to use GET and not POST so that was my full aspect anyway
__________________
CashTalkz Dot Net - Participate in the Forum and Earn Money!

Need Website Work ... PM Me If Your Interested!! I am available as of 9-6-2007
Baby Boy is offline   Reply With Quote
Old 06-03-06, 05:05 PM   #7
Busy Member
 
Join Date: Apr 2006
Location: East Coast, USA
Posts: 285
Default Re: URL Variables... How?

Don't know if this will affect your plans, but just as an FYI...you do know that these variable URLs really cannot be indexed by search engines? This is especially true if you have more than one variable.
__________________
Daniel Briere, CEO – WebsiteDirect.biz
Serious, no-BS, small business Web hosting.
Storage space for your MySpace images
GlobalWebDan is offline   Reply With Quote
Old 06-03-06, 05:07 PM   #8
Advanced Member
 
Baby Boy's Avatar
 
Join Date: Apr 2006
Posts: 874
Default Re: URL Variables... How?

Yes, I realize that Daniel, I am not really looking to index these in the search engine anyway. Just not really looking towards doing it because the pages are just temporary, I'll do a URL ReWrite when I get the total site done to make indexable links.
__________________
CashTalkz Dot Net - Participate in the Forum and Earn Money!

Need Website Work ... PM Me If Your Interested!! I am available as of 9-6-2007
Baby Boy is offline   Reply With Quote
Old 06-03-06, 05:16 PM   #9
Busy Member
 
Join Date: Apr 2006
Location: East Coast, USA
Posts: 285
Default Re: URL Variables... How?

Ah, Ok. I see.
__________________
Daniel Briere, CEO – WebsiteDirect.biz
Serious, no-BS, small business Web hosting.
Storage space for your MySpace images
GlobalWebDan is offline   Reply With Quote
Old 06-03-06, 05:20 PM   #10
Advanced Member
 
Baby Boy's Avatar
 
Join Date: Apr 2006
Posts: 874
Default Re: URL Variables... How?

^^ Sure thing, you have knowledge of SEO... throw me some tips and awareness to stay away from.
__________________
CashTalkz Dot Net - Participate in the Forum and Earn Money!

Need Website Work ... PM Me If Your Interested!! I am available as of 9-6-2007
Baby Boy is offline   Reply With Quote
Reply

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 On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:17 PM.

© 2006 - 2008 Net Business Talk Forums | About Net Business Talk Forums | Legal | A member of the Crowdgather Forum Community
 
 
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Designed by Vbulletinskinz.com