how can you get/insert data into a url without using get or post.
for example...
example.com/item/Hot-Bodies-Lightning-2-Sport-RTR-1-8th-Buggy
Many thanks
how can you get/insert data into a url without using get or post.
for example...
example.com/item/Hot-Bodies-Lightning-2-Sport-RTR-1-8th-Buggy
Many thanks
I'm not sure what you intend to do, but you could simply append a query string to a url using a question mark ?. You could explicitly write your link with php like this:
echo '<a href="http://somesite.com/someFile.php?'.$someVariable.'">click here<a>';
Hope this helps.
hi,
i didnt want to use the ? way.
i wanted to make it easier to read the url and to improve google rankings.
how do people create this method....
http://example.com/item/Hot-Bodies-Lightning-2-Sport-RTR-1-8th-Buggy
the item is pulled from a db and is not created manually.
Oh sorry, perhaps it is done by using a .htaccess and applying rewrite rules like this:
RewriteEngine On
RewriteRule Hot-Bodies-L...TR-1-8th-Buggy/?$ item.php [L,NC]
Note that you would still be passing values as part of the query string with the ?, you would simply mask the url with the rewrite engine.
A more general rewrite rule would be something like...
RewriteEngine On
RewriteRule ^item/(.*)/?$ item.php?item=$1 [NC]