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

  • SEARCH
  • Home
  • 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 8977271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:19:59+00:00 2026-06-15T19:19:59+00:00

I have a question about html form fields. I’m trying to create a form

  • 0

I have a question about html form fields. I’m trying to create a form to allow users to edit their profile. I want the form to have their information already in the fields when they access the page. So like Username [ken] Address [12345] City [NJ]. Then the user can edit any info they want and what they don’t want to edit will have their old information sent along with their new info. I’d like to know how I can put their info in the form fields.

I apologize if my question has been answered before but I’m not sure how to word it so it’s difficult to search for.

Thank you.

  • 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-15T19:20:00+00:00Added an answer on June 15, 2026 at 7:20 pm

    Essentially all you’re trying to do is add a value to the field.

     <input type="text" value="hello" />
    

    will set the the text that is in the field when it loads to “hello”. For php you’d simply be using

     <input type="text" value=<?php json_encode($variable); ?> />
    

    Or at least something similar, depending on your exact needs.

    For this particular example, try something similar to:

    <input type="text" value= <?php json_encode($username); ?> />
    <input type="text" value= <?php json_encode($address); ?>  />
    <input type="text" value= <?php json_encode($city); ?>     />
    

    The reason I’m using json_encode in this particular example is that it will print to the source in quotes, rather than doing some muddling ‘”‘.$variable type nonsense.

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

Sidebar

Related Questions

I have question about parsing in Html helper : I have sth like: @foreach
I Have a question about finding html tags using Java and Regex. I am
I have question about XSLT1.0. The task is to write out in HTML all
I have a question about grabbing a certain value from the html response data
I have a question about DOMAttrModified. Which changes to an HTML Element properties triggers
I don't know much css or html, so I have a question about taking
Sorry about the wording for my question title. I have a basic HTML anchor
I have a question about Ajax form submit. Here is the code: Controller [HttpPost,
I want to validate email address in html form. I have very little knowledge
Hi i have a questions about this http://dl.dropbox.com/u/143355/datepicker/datepicker.html twitter bootstrap plugin. How to change

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.