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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:53:06+00:00 2026-05-25T01:53:06+00:00

I got some values from a previous PHP file EX: <?php $value = $_GET[‘title’];

  • 0

I got some values from a previous PHP file

EX:

<?php
$value = $_GET['title'];
$value1 = $_GET['name']; 
$value2 = $_GET['age']; 
$value3 = $_GET['institution'];
?>  

Now i have a form field like following

<body>
<form action="pare.php" method="post">  
<label>Title:</label>
<input type="text" name="title" size="50"/><br/>     
<label>Name:</label>
<input type="text" name="name" size="50"/><br/> 
 <label>age:</label> 
 <input type="text" name="age" size="50"/> <br/>
 <label>Institution:</label> 
<select name="institution">
<option value="">-- Select --</option>
<option value="abc">abc</option> 
</select><br/>
<label></label>
<input type="submit" value="submit" /><br/>
</form>
</body>

Now what i want to do is display the values in a PHP file($value,$value1…)in their respective form field boxes.

If the user wants to edit those values($value,$value1…) he must be able to edit and submit those values.

how can i do this?

  • 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-25T01:53:07+00:00Added an answer on May 25, 2026 at 1:53 am
    <input type="text" name="title" value="<?php echo htmlspecialchars($_GET['title']) ?> />
    

    note the use of htmlspecialchars. It prevents any HTML metacharacters (" in particular) within the data from ‘breaking’ your form – e.g… it prevents HTML injection attacks.

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

Sidebar

Related Questions

I have some difficulties in my project. I got the RGB values from a
I got some legacy code that has this: <?PHP if(isset($_GET['pagina'])==homepage) { ?> HtmlCode1 <?php
I've got some custom values in the AppSettings, in my web.config file. These values
Let's say I got some values from GET from an url. How can I
print_r($array) results I retrieved some values from database and got the following result while
I've got some blank values in my table, and I can't seem to catch
I've got an application that's using string.compare(string,string) to sort some values. The thing I
I've got a script that sets some session values before redirecting to / using
Let's say I've got: Dim los1 as New List(Of String) los1.Add(Some value) Dim los2
I got some problems with finding a bug in php/mysql application, and I wonder

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.