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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:54:17+00:00 2026-05-17T00:54:17+00:00

Can someone maybe tell me why this is not working? I have used echo

  • 0

Can someone maybe tell me why this is not working?

I have used echo to build a form around the results:

echo "[$key:]$value";
    echo "[$key:]<br>";

to try to capture it into a textarea so that I can submit the result to a new page, when I do this the page shows blank….

<?php

/**
 * Function to read meta information from the given domain.
 *
 * @param string $domain
 */

  // Read META info
  $tags = get_meta_tags('http://www.cheap-flight.co.za');

  // Check the result and display it.
  if (sizeof($tags) == 0){
    echo '<div>No META information was found!</div>';
  }
    echo '<form name="form1" method="post" action="">'
    echo '<textarea name="textarea" id="textarea" cols="45" rows="5">'
  foreach ($tags as $key=>$value) {
    echo "[$key:]$value";
    echo "[$key:]<br>";
  }
  echo '</textarea></form>'

?> 

The ideal would be to have it like this:

echo "<textarea name="textarea" id="textarea" cols="45" rows="5">[$key:]$value</textarea>";

and place each result into it’s own textarea…

Any help would be appreciated

  • 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-17T00:54:17+00:00Added an answer on May 17, 2026 at 12:54 am

    You are missing ; at the end of your lines. And I would put the loop in an else statement, otherwise it does not make sense.

    if (sizeof($tags) == 0){
        echo '<div>No META information was found!</div>';
    }
    else {
        echo '<form name="form1" method="post" action="">';
        echo '<textarea name="textarea" id="textarea" cols="45" rows="5">';
        foreach ($tags as $key=>$value) {
            echo "[$key:]$value";
        }
        echo '</textarea></form>';
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not understanding this behavior. Maybe someone can explain to me why my current
Can someone tell me why this processes all the files and then does it
I'm not for sure how the ControlCollection of ASP.Net works, so maybe someone can
I'm having trouble groking something in Linq - maybe someone can give me some
I'm a Linq noobie, maybe someone can point me in the right direction. What's
Can someone explain to me or maybe point a link or an example of
Can someone explain it succinctly? Can it be used with non-Silverlight clients?
Can someone share their experiences with s#arp architecture. we have decided to follow mvp
Can someone tell me why when I cast a string of say 00332 I
Can someone tell me a fast function to find the square of each pixel

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.