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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:49:09+00:00 2026-05-30T12:49:09+00:00

I am a real beginner at this so sorry if I am makin awfull

  • 0

I am a real beginner at this so sorry if I am makin awfull mistakes!

Want I want to do I know is very simple but I cant find the relevant help in my documentation.

I want to bring four variables out of a ‘product’ page, I then want to post these as the values of an html form but I am not sure how.

The variables come from managebooks.php and need to be used in ammendbook.php.

In managebooks.php my link to ammendbook.php is as follows:

echo "<tr>";
echo "<td>";
echo "<a href='amendbook.php?bookname=".$bookname."&bookauthor=".$bookauthor."&bookpub=".$bookpub."&bookisbn=".$bookisbn."'>Amend Entry</a>";
echo "</td>";

This i expected to bring that four variables with me to the next page (ammendbook.php) my form code is as follows:

<form id="adminlogin" name="login" action="amendbookupdate.php" method="post">
                    Book Title <br />
                    <input type="text" name="booktitle" value="<?php echo $bookname; ?>"></input><br />
                    Book Author(s)<br />
                    <input type="text" name="bookauthor" value="<?php echo $bookauthor; ?>"></input><br />
                    Book Publisher<br />
                    <input type="text" name="bookpub" value="<?php echo $bookpub; ?>" ></input><br />
                    ISBN-10 number (non-standard format)<br />
                    <input type="text" name="bookisbn" value="<?php echo $bookisbn; ?>"></input><br /><br />
                    <input type="submit" name="submit" value=" - Update Database - "></input>
                </form> 

I am not sure what else to include, I tried making an array to see if that would work (hense the echo variables like this:

<?php
    $bookname['bookname'] = $_GET['bookname'];
    $bookauthor['bookauthor'] = $_GET['bookauthor'];
    $bookpub['bookpub'] = $_GET['bookpub'];
    $bookisbn['bookisbn'] = $_GET['bookisbn'];
?>

But this is wrong.

I also in the form attempted to just put:

<input type="text" name="booktitle" value="<?php echo $_SESSION['bookname'] ?>"></input><br />

but this is also wrong!

Any ideas guys..

Thank you in advance for reading and any help!

[=

  • 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-30T12:49:10+00:00Added an answer on May 30, 2026 at 12:49 pm

    Just try:

    $bookname = $_GET['bookname'];
    $bookauthor = $_GET['bookauthor'];
    $bookpub = $_GET['bookpub'];
    $bookisbn = $_GET['bookisbn'];
    

    At the top of ammendbook.php and then refer to those variables by those names. Is that not what you’re looking for? I may be confused.

    Edit: You should always sanitize variables that come from the GET or POST arrays before assigning them to variables.

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

Sidebar

Related Questions

am sorry for this dumb beginner question, but i have a real problem understanding
probably this is a real beginner question, but i cannot find an answer on
Real noob question no doubt, but I can't get my head around this behaviour.
This is a real beginner Hibernate problem. I have a problem with the mappings
I know that my this question may sound pathetic to you but as a
This is a real beginner question (I'm still learning the Java basics). I can
I'm a beginner in jQuery area and I have simple question like this :
I'll start by saying I am very much a beginner programmer, this is essentially
I'm interested in wed development and web 2.0 but I'm a real beginner, so
Python beginner here, so I apologize if this question has a simple answer. (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.