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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:24:16+00:00 2026-05-24T21:24:16+00:00

I have to declare an html link in my php file, i can do

  • 0

I have to declare an html link in my php file, i can do that in the following way

echo "<a href='razz.com'>Update</a>"; 

the link razz.com has a form fields(text type) in it, what i want to do is that when i open the link the form fields present in the link needs to be filled by the values that i declare in my initial php page.

the values of the form fields that needs to be filled are obtained from database.

How can i do that? Any tutorials or code snippet are appreciated.

Thank you.

Code snippet of what i am looking for:

a user fills form information which needs to go into database for storage:
the form is as follows:

<p>Title:<input type="text" name="title"/></p>
<p>Report No:<input type="text" name="rno"/></p>
<p>URL:<input type="text" name="url"/></p>

now after filling the form, the data will be stored in the database . A page with echo’s successful with form information and a link to update the previously entered information will be displayed.

now again this update link contains the form structure , so instead of entering the information which was previously entered. the information already entered needs to be fetched and displayed in the form area.

  • 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-24T21:24:17+00:00Added an answer on May 24, 2026 at 9:24 pm

    You would need to use GET request parameters and the $_GET array on the page that is accepting the request to pass values to your link, but only if the http://razz.com/ index page actually accepts your URL parameters.

    For instance (see the stuff and otherstuff GET keys in the URL):

    echo "<a href='http://razz.com/?stuff=yes&amp;otherstuff=yadayada'>Update</a>"; 
    

    Then the razz.com index(.php):

    $stuff = $_GET['stuff']; // with the link above, equal to yes
    $otherstuff = $_GET['otherstuff']; // with the link above, equal to yadayada
    
    echo "
    <h2>$stuff</h2>
    <p>I got $otherstuff.</p>
    ";
    

    This would echo on razz.com/index(.php):

    <h2>stuff</h2>
    <p>I got yadayada.</p>
    

    You could also use the $_POST array, but this would require more work and you would need to have a reason to do this (such as the data you’re passing is transitory). You could do this by triggering a form, which you could also do a GET request with.

    However, your question is not really that well worded. If you can provide more context and direction, that would help.

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

Sidebar

Related Questions

With the following html: <div> <a href='#link1' onclick='func()' >Link 1</a> <a href='#link2' onclick='func()' >Link
I have a little script that compiles a markdown file into html, and inserts
I am trying to run PhotoStream sample from following link http://android-developers.blogspot.com/2008/09/android-photostream.html But when i
I have objects with many variables that I declare and explain in the comments.
Consider that I have a transaction: BEGIN TRANSACTION DECLARE MONEY @amount SELECT Amount AS
I have an HTML file with a couple of external JavaScript files. Here's an
I have the following script that I want to insert into a table, but
I have in an HTML page, an element that appears several times, and running
I have a page that loads an HTML form via a $.ajax request. The
I have a table of values like this: http://www.conversiontable.org/clothingsizeconversiontable.html and I want to declare

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.