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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:52:14+00:00 2026-05-31T22:52:14+00:00

Weird question this, going round in circles. I have 2 pages. Page 1. Has

  • 0

Weird question this, going round in circles.

I have 2 pages.

Page 1. Has a button on it. Like

<form action="goto_page_2.php"><p class="longdesc"><span class="spanBold">Scrap Collections in North Lakes:</span><br />
      <button class="readViewMoreBtn" value="North Lakes">Book a Collection in North Lakes</button>
      </p></form>

The above is a simple mockup. But what I want to do is, onclick of the button, parse the Value to …

Page 2. Which has a form built in.

One of the fields is Suburb.

<!-- EMAIL SUBURB -->            
                <span class="commonControlLabel">Suburb:</span>&nbsp;
                <span class="commonControlLabelItalic">(required)</span>
                <span id="contactSuburbErrorMsg" class="commonControlErrorMsg"></span><br />
                <input class="commonInput" type="text" id="inputSuburb" value=""/><br />

So what I want to do, is grab the VALUE of the button on PAGE 1, and add it to the Value in the input element on Page 2.

To complicate matters, Page 1. Has quite a few buttons, with different values, all unique, which we would like to pass, to the input element. Obviously onlcick of the button on page 1 we go direct to page 2.

  • 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-31T22:52:15+00:00Added an answer on May 31, 2026 at 10:52 pm

    Have the button post it’s value to Page2:

    Page1, I added type="submit" and name="suburb"

    <button type="submit" name="suburb" class="readViewMoreBtn" value="North Lakes">Book a Collection in North Lakes</button>
    

    Page2: I added the php part in the value attribute

    <input class="commonInput" type="text" id="inputSuburb" value="<?= $_POST['suburb'] ?>"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This may sound a weird question, I have a page which has a link:
Hi this may seem like a weird question, but here's my situation: I have
I know this question is going to be...weird and...odd. I have programmed stuffs for
I have this weird question. I would like to know if it is possible
I know this is a weird question to ask, but I would like to
This might seem like a weird question, but bear with me. I'd like to
OK, this is a slightly weird question. We have a touch-screen application (i.e., no
I most likely have the same problem as in this question: Weird Chrome prototype/jQuery
Following this question: Weird MIPS assembler behavior with jump (and link) instruction I have
This may sound like a weird question but is there any where I can

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.