Toggle navigation
Dashboard
Dashboard Tracker
Add / Edit My Forums
System Announcements
Discussion
Active Thread Feed
Top Threads Today
Top Threads This Week
Top Threads Library
Go!
View All
View All
Login
Logout
Home
Forums Index
Server Side
/
PHP Server Side Scripting
11:10 am Apr 28, 2026
This page requires javascript.
Forum Moderators:
coopster
Message Too Old, No Replies
Accessing PHP variables from within HTML?
calmseas
Msg#:4189876
4:21 pm on Aug 20, 2010
(gmt 0)
I understand how to access FORM variables from within PHP. However, how does one access PHP variables from within HTML?
RKTexas
Msg#:4189907
5:07 pm on Aug 20, 2010
(gmt 0)
if you have stored variables within PHP that you either want to display or access in HTML the easy way is to do this
example:
<?php
$this = Hello World;
?>
<html>
this is what I want to say: {$this};
</html>
output would be
this is what I want to say: Hello World
this is generalized, not sure if this is what you were asking or not.
calmseas
Msg#:4190370
11:52 pm on Aug 21, 2010
(gmt 0)
Got it............thank you!
Join The Conversation
Register
For Free! -
Become a
Pro Member
!
See forum categories
-
Enter the Forum
Moderators and Top Contributors
Moderator List
| Top Contributors:
This Week
,
This Month
,
Mar
,
Feb
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
April 2026 Google Search Observations
Hello again, it's been a while
AdSense Earnings and Observations - April 2026
Do you get tired of others copying your content?
5 SEO Tips That Actually Worked for My Blog in 2026
I need some SEO help
iPhone Safari 26.4.1 errors: IPv4 & Host
2025 Link Building Trends and Insights
Does SEO matter any more?
SEO question
Home
Forums Index
Server Side
/
PHP Server Side Scripting
11:10 am Apr 28, 2026