Solved

Expandable div, $_GET pointer

Posted on 2009-07-06
8
395 Views
Last Modified: 2012-06-27
How to make here (with usage of this script): http://rcdrugs.com/help
action, that if I put into browser URL: http://rcdrugs.com/help/10

The question 10 would expand?
0
Comment
Question by:AndyPSV
  • 4
  • 3
8 Comments
 
LVL 34

Accepted Solution

by:
gr8gonzo earned 500 total points
Comment Utility
Change the script to use a regex to extract the number:

<?
preg_match("/\/help\/([0-9]+)/",$_SERVER["REQUEST_URI"],$matches);
$questionNumber = $matches[1];
?>

Then when you're displaying the questions, just change the display using $questionNumber.

By the way, the page shows a bad message for Internet Explorer users. Some people think they're doing good by trying to tell people not to use Internet Explorer, but you're really just losing the business of those people. Internet users are not patient enough to switch browsers just to visit a web site. If there's a problem with IE, then fix the problem. Just a friendly tip.
0
 

Author Comment

by:AndyPSV
Comment Utility
the problem is that nobody exactly knows how to fix site on IE, I've posted several times - everywhere; asked too on EE, but nothing

could you tell me only what to do to: Then when you're displaying the questions, just change the display using $questionNumber.

where do it? don't see in js
0
 
LVL 34

Expert Comment

by:gr8gonzo
Comment Utility
It's hard to say without seeing the code. What is the problem with IE?
0
 

Author Comment

by:AndyPSV
Comment Utility
fixed ;-)
forgot to delete appropriate line, thanks btw

try now
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 34

Expert Comment

by:gr8gonzo
Comment Utility
Hmmm, after looking at the site and seeing what it sells, I'm not surprised that you haven't gotten a response yet. Some of what that site sells is illegal in the US, so people probably don't want to associate with it. It's nothing personal, but that's the limit of my help, as well.
0
 

Author Comment

by:AndyPSV
Comment Utility
?

I don't sell to USA.
Besides I'm doing second site and for it I need help - redkr.com, a social site.
This is only the example of the code.

IE errors were fixed, all. Thought before that something left, but as you see - It's working :-) FINALLY!
Please help me, I need this to do to my new social site - redkr,com, seriously.
0
 

Author Comment

by:AndyPSV
Comment Utility
BTW. what I sell is legal in US, but I don't ship to US to avoid problems; all substances are legal.
Furthermore, you're the first person on EE which said something about the content of the site... so
0
 
LVL 11

Expert Comment

by:BrianMM
Comment Utility
my 2p's worth...

When providing help on here there should be no discrimination about the content... it really does'nt affect if we should help or not imho.

However, if helping otu while at work it is/would be good to know if something is work-safe to open :) if not wait till @ home.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now