Advertise with Us Hi , I am not a coder but trying to show the below text as H1 tag but do not know how to get it done...any one can help ? $GLOBALS["msg"]="Your page has updated"; the above text "your page has updated". where to start and close the tag? Thans for any feeback. #add #code #error #html #php #tag
KirkMcD 11 years ago Since this seems to be a custom script, you need to see how it gets displayed in order to figure out how to modify it to display the way you want.
Thanks
1 reply
{{ DiscussionBoard.errors[9961906].message }}
ferenan 11 years ago Thanks for the comment MCD, It gets display as a normal small text and I just want to show it bigger or bold with H1. I hope I understood what you mean . I cant see any related html tag in the file itself and no clue from where its calling. I tried to show it like: $GLOBALS["msg"]="<h1>Your page has updated</h1>"; but no success with it.
Thanks
1 reply
{{ DiscussionBoard.errors[9961983].message }}
Zenoth 11 years ago Use <h1> tags when you display the message. Of course, escape the result before and do any additional checks ... $GLOBALS["msg"]="Your page has updated"; echo '<h1>' . $GLOBALS["msg"] . '</h1>';
[ 2 ] Thanks
{{ DiscussionBoard.errors[9962527].message }}
KirkMcD 11 years ago Somewhere in the entire script, the value is sent to the browser. Find that code.
[ 1 ] Thanks
{{ DiscussionBoard.errors[9962609].message }}
asoka 11 years ago Zenoth is right.. $ variables are PHP variables, so you can use following to add any HTML code Use following code as he suggested: $GLOBALS["msg"]="Your page has updated"; then write anywhere on the php page to write in html heading. echo '<h1>' . $GLOBALS["msg"] . '</h1>';
[ 2 ] Thanks
{{ DiscussionBoard.errors[9962635].message }}
ferenan 11 years ago Thanks for all ...I could be able to solve the issue. when user save data element from a website and save it to database ,how can I show the saved the data in the field ? in the example below I want to show the save title in the field box: <input name="article_title2" type="text" class="login_input" id="title2" style="width:250px;" value="<?php echo $article_title[1];?>" /> Thanks for any help.
Thanks
{{ DiscussionBoard.errors[9964170].message }}
Curtnielson 11 years ago There are two main methods. I'll demonstrate both. 1: The first method is putting the php between html. This is demonstrated below. <html> <head> <title>h1 tags</title> </head> <body> <h1><?php echo $hackname = $result['hackname']; ?></h1> <p>My little description goes here</p> </body> </html> 2: The second method is to put the html in the php like so... <html> <head> <title>h1 tags</title> </head> <body> <?php echo '<h1>' . $hackname = $result['hackname'] . '</h1>'; ?> <p>My little description goes here</p> </body> </html> By the way, you can't scrap the whole '$hackname = ' part and just echo $result['hackname']. Defining a variable in an echo statement will work, but doesn't make much sense, especially in your case. Here's the above method without the '$hackname = '. <html> <head> <title>h1 tags</title> </head> <body> <?php echo '<h1>' . $result['hackname'] . '</h1>'; ?> <p>My little description goes here</p> </body> </html>
bsuperc 11 years ago Honestly the cleanest approach is going to be this (assumes PHP shortcode is enabled, which most web hosts have): <html> < head> < title>h1 tags</title> < /head> < body> <h1><?=$result['hackname'];?></h1> < p>My little description goes here</p> < /body> < /html>
Thanks
Signature Manage Your Monthly Budget - CardNanny.comWarriors, we also offer an affiliate program paying 75%+10% recurring commission, click here to view the thread. {{ DiscussionBoard.errors[9995341].message }}
23{{ upvoteCount | shortNum }} Pennystock1130 1 week ago in Internet Marketing
I used to do article marketing. I mean during the wild wild west of article marketing and I became very good at it. Now I've been away for a while ... [read more]
63{{ upvoteCount | shortNum }} discrat 1 week ago in Off Topic
i know we don't say this enough in life... but i really enjoy you guys here and just love this little corner of the universe called the off topic forum!! ... [read more]
23{{ upvoteCount | shortNum }} Geoff Meakin 2 weeks ago in Internet Marketing
Hi everyone, So I currently run an SEO agency. Here's the drill.... Clients book a call. I pitch them an SEO audit "roadmap" for a one off fee £499 (~$600 ... [read more]
43{{ upvoteCount | shortNum }} discrat 3 weeks ago in Off Topic
i have to give credit where credit is due and i have to admit Dan really inspired me to watch these Olympics seeing his enthusiasm and passion. i have been ... [read more]
3{{ upvoteCount | shortNum }} hostingkt sale 1 week ago in Beginners Area
I'm a digital marketer focused on traffic generation and online business growth. I joined the forum to learn from others, share ideas, and stay updated with industry trends. Thanks
Super High ROI Amazon Affiliate Website - Build for You + Coach You to Profit + 1 Year Money Back by Verena Bumping your thread by WarriorForum.com View All Offers... Launch your WSO Advertise with Us
All Topics
Main Internet Marketing Discussion Forum
Artificial Intelligence
Search Engine Optimization
Ad Networks
Pay Per Click/Search Engine Marketing
Email Marketing
Growth Hacking
Social Media
Offline Marketing
Copywriting
eCommerce Sites
Internet Marketing Product Reviews
Mind Warriors
Programming
Website Design
Warrior Joint Ventures
Off Topic Forum
Local Meetups
Warrior Forum Help
Suggestion Forum
Advertise with Us Search Unregistered Sign up Log in