Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9055575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:59:17+00:00 2026-06-16T13:59:17+00:00

I am pretty new to PHP, but I have a fair idea about how

  • 0

I am pretty new to PHP, but I have a fair idea about how it works.
My question is this: is it possible to have something like %username%, in HTML, and when PHP recognises this text, it will output a username?
Ie: turn the %username% to the actual username?

How would this be done, or how does it work?

Thanks for all help in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T13:59:18+00:00Added an answer on June 16, 2026 at 1:59 pm

    This usually done through Template Engines like Smarty for example. See the next definition from smarty.net

    What’s a template engine and why should I use one?

    Smarty is a template engine for PHP. More specifically, it facilitates
    a managable way to separate application logic and content from its
    presentation. This is best described in a situation where the
    application programmer and the template designer play different roles,
    or in most cases are not the same person. For example, let’s say you
    are creating a web page that is displaying a newspaper article. The
    article headline, tagline, author and body are content elements, they
    contain no information about how they will be presented. They are
    passed into Smarty by the application, then the template designer
    edits the templates and uses a combination of HTML tags and template
    tags to format the presentation of these elements (HTML tables,
    background colors, font sizes, style sheets, etc.) One day the
    programmer needs to change the way the article content is retrieved (a
    change in application logic.) This change does not affect the template
    designer, the content will still arrive in the template exactly the
    same. Likewise, if the template designer wants to completely redesign
    the templates, this requires no changes to the application logic.
    Therefore, the programmer can make changes to the application logic
    without the need to restructure templates, and the template designer
    can make changes to templates without breaking application logic.

    and there are many other template engines other than smarty, just google for it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a pretty simple question but I am really new to php. I
I'm pretty new to php but i'm learning pretty fast, I have a question
I've done a fair bit of mysql php programming but am pretty new to
I'm sure this is pretty elementary but I'm new to php. Can someone tell
I'm pretty proficient in PHP, but want to try something new. I'm also know
I'm pretty new to php.. and this is probably a stupid mistake... but I
This is my first question on this site. I'm new to php but i've
I am pretty new to php, but I am learning! I have a simple
I am pretty new to PHP so I apologise if this seems like a
I'm pretty new to PHP, but I decided to try and make a simple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.