hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : PHP Problems
Reply

Web Design and Content Subjects include, HTML, graphics, editors, CSS, Flash, graphics creation, placing of ads, ad serv companies, copyright, content and nearly anything else design related. Also talk about businesses that provide design services. If you link to your site, you must post in Web Site Reviews.
Forum Jump

PHP Problems

Reply Post New Thread In Web Design and Content Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-09-2003, 08:56 PM
Fanyl Fanyl is offline
Newbie
 
Join Date: Sep 2003
Location: eh?
Posts: 9
Angry

PHP Problems


Ok Can someone give me the php coding for a website that uses something like this:

main.php?id=ff7/index&menu=ff7


anyone knows how to do that???? anyone please post below....

__________________
Ganseki D

Reply With Quote


Sponsored Links
  #2  
Old 09-09-2003, 11:08 PM
Axi Axi is offline
Web Hosting Evangelist
 
Join Date: Jan 2003
Posts: 524
You can do this by using the else and if method...

__________________
AIM: AtonexCOM

Reply With Quote
  #3  
Old 09-12-2003, 08:50 AM
Reptilian Feline Reptilian Feline is offline
Web Hosting Master
 
Join Date: Jul 2002
Location: Sweden
Posts: 2,065
That looks like the code for form method="get" that is written directly into the <a href> tag.

It is then used either to display the input on the next page, or it is used to display things if certain conditions are met.

like this:
PHP Code:
if (id == 'ff7')
{
  
//Do something here
}
else
{
  
//Do something different

Without any more information than what you have given, it's very hard to give you a proper answer.

__________________
"Stop flame-wars - Report a post"
The original Kitty Lizard

Reply With Quote
Sponsored Links
  #4  
Old 09-13-2003, 05:27 AM
Rancher Rancher is offline
Newbie
 
Join Date: Jul 2003
Posts: 27
nope, its the include command. Lots of sites use this nowadays.

<? include("dir/to/the/page/" . "$id" . ".extension") ?>

the & command is to specify the next variable, which is $menu

<? include("dir/to/the/page/" . "$menu" . ".extension") ?>

so the command can be called using

whatever.php?id=pages/blah&menu=blah

Reply With Quote
  #5  
Old 09-13-2003, 05:27 AM
Rancher Rancher is offline
Newbie
 
Join Date: Jul 2003
Posts: 27
nope, its the include command. Lots of sites use this nowadays.

<? include("dir/to/the/page/" . "$id" . ".extension") ?>

the & command is to specify the next variable, which is $menu

<? include("dir/to/the/page/" . "$menu" . ".extension") ?>

so the command can be called using

whatever.php?id=pages/blah&menu=blah

Reply With Quote
  #6  
Old 09-13-2003, 05:28 AM
Rancher Rancher is offline
Newbie
 
Join Date: Jul 2003
Posts: 27
Sorry for the double post, I can't seem to edit my own posts

Reply With Quote
  #7  
Old 09-13-2003, 07:36 PM
ANMMark ANMMark is offline
Web Hosting Master
 
Join Date: Apr 2002
Posts: 2,193
Fanyl,

Well this all depends on what you're trying to accomplish. That url format can be used for practically anything, and is simply used to pass an array of data to the script it's calling.

This can be used for forms, as well as template systems, etc...

So the code you need, will depend on what you're trying to do.

__________________
Mark - Co-President/Lead Developer
avidInteractive Software
ServeraSuite™ - Server monitoring from your desktop!...It's Here!!

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
HostingCon Preview: Q&A with David Koston of Fortuity LLC Web Hosting News 2012-07-10 12:54:20
KnownHost Launches Unmanaged VPS Hosting with New Brand, RocketVPS Web Hosting News 2012-02-27 14:54:51
IT Management Software Firm SolarWinds Launches Synthetic End User Monitor Web Hosting News 2011-08-19 18:46:21
CDN Provider Cotendo Secures $17 Million Funding, Launches Mobile Acceleration Suite Web Hosting News 2011-06-15 14:02:38
World IPv6 Day a Success, say Organizers and Web Hosts Web Hosting News 2011-06-09 15:53:10


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?