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

The Archive Base Latest Questions

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

I hava a list of data pulled in from a mysql database and displayed

  • 0

I hava a list of data pulled in from a mysql database and displayed using the ‘while’ statement; which all works great.

When a user clicks on the ’email’ link, next to one of the displayed items, a popup form appears, with the idea of emailing/sending the item details to a friend.

Now this all works great, but I can’t seem to send the correct items’ data to the form when the link is pressed. I’m guessing it could be because it’s outside of the php but I don’t want multiple instances of the same form being included in the while statement. As it is, there is only one form, I just need to be able to send the items id to it when the email link is pressed.

Any help greatly appreciated, S.

(stripped down code below)

<?php                   
    $query = mysql_query("select * from istable where categoryID = '1'");       
    while ($result = mysql_fetch_array($query)) {               
    echo '<h4>'.$result['title'].'</h4>
    <p>'.substr($result['descrip'],0,408).'... <a href="'.$wwwUrl.'/p/'.$result['categoryID'].'-'.$result['title'].'.php""><strong>Read more</strong></a></p>

    <div class="details">       
        <a href="#" rel="#sheet" class="see"><img src="'.$wwwUrl.'/images/email-icon.gif" width="23" height="23" alt="Email" /> Email</a>
        </div>';        
    } 
?> 

      <div id="sheet" class="rounded">
      <!--{{{ pane1 -->
          <div class="pane" id="pane1">

          <h4>Email Property Details to a Friend</h4>            
          <p>You have selected to forward the details of <?php echo $_GET['title']; ?> to a friend.</p>
          <p>Please fill out the following form</p>

              <form class="rounded" id="email-form" method="post" action="<?php echo $pageLink; ?>"> 
              <!-- form goes in here -->                 
              </form>   
          </div>
          <!--}}}-->                
      </div>
  • 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-20T01:03:06+00:00Added an answer on May 20, 2026 at 1:03 am
    <?php $pageLink; ?>
    

    Should be

    <?php echo $pageLink ?>
    

    <?php $_GET['title'] ?> should be <?php echo $_GET['title']; ?>

    And everywhere else.
    You need to echo the value to the output (HTML) 🙂

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

Sidebar

Related Questions

I hava a url such as search.do?offset=20 offset sometimes is in the url sometimes

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.