brainstem Posted November 8, 2006 Share Posted November 8, 2006 Is PHP parsed in the noscript element when the agent has script enabled?I am trying to work out a conditional script that sets other session variables when the browser sends the -noscript- signal and pulls data from the <noscript element.Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/26592-php-inside-noscript-element/ Share on other sites More sharing options...
mainewoods Posted November 8, 2006 Share Posted November 8, 2006 php is parsed in the noscript element on the server side and can insert values in the noscript which will just be literal values when they are recieved browser side in the noscript tag:[code]<noscript>Hello <?php echo $username; ?>, you need to enable javascript to use this web site.</noscript>[/code] Link to comment https://forums.phpfreaks.com/topic/26592-php-inside-noscript-element/#findComment-121634 Share on other sites More sharing options...
Psycho Posted November 8, 2006 Share Posted November 8, 2006 The noscript HTML tag only applies to script processed on the client-side - it would have no effect on PHP code that is processed on the server side.Not sure what you mean by "when the browser sends the -noscript- signal". To my knowledge browsers don't send any information like that to the server. Link to comment https://forums.phpfreaks.com/topic/26592-php-inside-noscript-element/#findComment-121635 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.