I am using PHP and mySql to build a page that users can use to search a recipe database. The search part of the page works fine-- now, I'm trying to create a page called displayrecipe that will display whatever recipe the user selects. A snippet of my code is:
$encodedRecipeName = urlencode($recipeName);
echo " $recipeName ";
The above code creates links similar to the one below (grilled chicken salad is just an example... it could be ANY recipe name in the database):
displayrecipe? grilled+chicken+salad
What code do I need on my displayrecipe page to retrieve the "grilled+chicken+salad" part of the url (preferably without the +'s)?
(I'll add more details if need be... please just ask)
2006-11-08
11:54:20
·
2 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design