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 496639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:42:19+00:00 2026-05-13T05:42:19+00:00

I have an entry Form. When the page is loaded, it must check: if

  • 0

I have an entry Form. When the page is loaded, it must check:

if ($_SESSION[WorkMode] == 'UPDATE')

Then fill the Form with values from the database, else open a blank Form.

If I fetch the results in a different PHP file and call this .php file on load, how to fill the Form.

  • 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-05-13T05:42:19+00:00Added an answer on May 13, 2026 at 5:42 am

    Set the variables that hold the values for your form, then include the “template” of the form you’re having.

    File 1:

    <?php
    $res = mysql_query("..");
    if($res) {
      $row = mysql_fetch_assoc($res);
      $name = $row['name'];
      $birthday = $row['birthday'];
      ...
      include('form.tpl');
    }
    

    File 2 (form.tpl)

    <form action="">
      <input type="text" name="username" value="<?php isset($name)?$name:""; ?>" />
      .. and so on
    </form>
    

    Alternatetively you can use a full blown template engine like Smarty to do the job for you.

    Best wishes,
    Fabian

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

Sidebar

Related Questions

I'm developing an ASP.NET form for data-entry. Users have to select a client from
I have an asp web form which is used for database entry located at
I have an Entry Form and a GridView on the same page. Selecting a
I have a data entry form that has remote validation set up to check
I have a very simple entry form. After a button is pressed, I need
In the entry form of my wpf application, I have a list of buttons
I have a Django form using textareas and TinyMCE for text entry. I would
Hey guys quick question, I have an entry that I put in my database,
I have a single entry output from a paradox table which is imported into
I have the following entry in my database: t.time :my_time_stamp In my controller I

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.