tiimage Posted May 6, 2009 Share Posted May 6, 2009 If my url is something like http://www.mysite.com/thispage.html?writethis How would I get php to take the "writethis" part or any text that might be there after the question mark and put it where I want it on the "thispage.html" webpage? This will be used for URL's so it can not be a javascript, must be done in the background. Link to comment https://forums.phpfreaks.com/topic/157101-how-would-i-get-php-to-take-text-from-a-url-string-and-put-it-on-the-webpage/ Share on other sites More sharing options...
revraz Posted May 6, 2009 Share Posted May 6, 2009 Are you referring to using $_GET? Or trying not to use it? Link to comment https://forums.phpfreaks.com/topic/157101-how-would-i-get-php-to-take-text-from-a-url-string-and-put-it-on-the-webpage/#findComment-827609 Share on other sites More sharing options...
tiimage Posted May 6, 2009 Author Share Posted May 6, 2009 Are you referring to using $_GET? Or trying not to use it? As long as it is done in the background is what is important. Link to comment https://forums.phpfreaks.com/topic/157101-how-would-i-get-php-to-take-text-from-a-url-string-and-put-it-on-the-webpage/#findComment-827613 Share on other sites More sharing options...
revraz Posted May 6, 2009 Share Posted May 6, 2009 http://www.w3schools.com/PHP/php_get.asp Link to comment https://forums.phpfreaks.com/topic/157101-how-would-i-get-php-to-take-text-from-a-url-string-and-put-it-on-the-webpage/#findComment-827625 Share on other sites More sharing options...
Brian W Posted May 6, 2009 Share Posted May 6, 2009 "thispage.html" won't work, "thispage.php" assuming your server supports php. Secondly, I'm going to venture a guess you asked this somewhere else and they suggested php but you aren't familiar with php at all. right? If so, consider paying someone to do it or starting by reading some tutorials for beginners. Most of the members of this website have recommended reading material. Link to comment https://forums.phpfreaks.com/topic/157101-how-would-i-get-php-to-take-text-from-a-url-string-and-put-it-on-the-webpage/#findComment-827635 Share on other sites More sharing options...
Ken2k7 Posted May 6, 2009 Share Posted May 6, 2009 Well you can have .htaccess treat .html as .php if you want. Link to comment https://forums.phpfreaks.com/topic/157101-how-would-i-get-php-to-take-text-from-a-url-string-and-put-it-on-the-webpage/#findComment-827657 Share on other sites More sharing options...
Brian W Posted May 6, 2009 Share Posted May 6, 2009 fine, you've bested me this time by technicality. On guard! lol Link to comment https://forums.phpfreaks.com/topic/157101-how-would-i-get-php-to-take-text-from-a-url-string-and-put-it-on-the-webpage/#findComment-827665 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.