Jump to content

Might be a little confusing ...


ItsWesYo

Recommended Posts

Alright. I'm going to make a FAQ section on my own.

When you click on 'FAQ' on the navigation menu, it will go to 'faq.php'.

When you're at 'faq.php', there will be different faq sections. Such as 'general', 'account', 'other', etc.

Right now, when you click on one .. it has an id ...
example: if i click on 'general', it goes to 'faq.php?id=1'.

What I want now is ... in that page ... i want people to see a list of the questions...when they click on a question, i want the url to be 'faq.php?id=1&q=1' and so on.

How would I do that?
Link to comment
Share on other sites

Well, it's not in the database ..... here is my current [b]faq.php[/b] page:

[code]
<?php
include ("http://wes.hypreed.com/header.php");
$page = $_REQUEST['id'];



if($page == "1"){
echo ( "

question 1<br>
answer 1<br><br>

question 2<br>
answer 2

" );
die();
}





elseif($page == "2"){
echo ( "

question<br>
answer<br><br>

question<br>
answer

" );
die();
}


else {
echo ( "

<a href='?id=1'>Account</a><br>
<a href='?id=2'>General</a>

");
die();
}



?>[/code]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.