soumya_0901 Posted May 4, 2009 Share Posted May 4, 2009 i want to know that if we can manipulate html elements used in a php page using php server side. like server side javascript(ssjs) does. for example: the title tag is like this <title>this is a unique title generated from url parameters</title> i want it to be changed server side like in ssjs <server>document.title="what i want"</server> all this done with the help of php.. not ssjs nor client side javascript. a quick response will be highly appreciated Quote Link to comment https://forums.phpfreaks.com/topic/156802-can-we-manipulate-domelements-such-as-title-server-side-wih-php/ Share on other sites More sharing options...
Ken2k7 Posted May 4, 2009 Share Posted May 4, 2009 You can mix a PHP file with HTML. file.php <html> <head> <title><?php echo 'Title'; ?></title> </head> <body> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/156802-can-we-manipulate-domelements-such-as-title-server-side-wih-php/#findComment-825799 Share on other sites More sharing options...
soumya_0901 Posted May 5, 2009 Author Share Posted May 5, 2009 no that wasn't what i was looking for . i meant to change the <title> object content server side. that is to manipulate it server side ??? Quote Link to comment https://forums.phpfreaks.com/topic/156802-can-we-manipulate-domelements-such-as-title-server-side-wih-php/#findComment-826519 Share on other sites More sharing options...
Daniel0 Posted May 5, 2009 Share Posted May 5, 2009 You can't. Quote Link to comment https://forums.phpfreaks.com/topic/156802-can-we-manipulate-domelements-such-as-title-server-side-wih-php/#findComment-826522 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.