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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:39:39+00:00 2026-06-07T10:39:39+00:00

<?php if (in_array($key,$following)){ echo ‘ <form id=follow action= action.php method=GET data-theme=a> <input type=hidden name=id

  • 0
<?php
if (in_array($key,$following)){
        echo ' <form id="follow" action= "action.php" method="GET" data-theme="a">
        <input type="hidden" name="id" value="$key"/>
        <input type="submit" name="do" value="follow" data-theme="a"/>
</form>';

?>

I am trying to style this echo section. I have it outputting to another PHP file that is framed in HTML div tags. How would I go about this? I have everything else on the page styled correctly except for this output.

Edit** I edited the code, that’s a form. But anyway, I have another php file that is referencing this php code and on the 2nd php file it is wrapped in html and the div tag on that page shows the echo from this page but I can’t get the css to work on that other file. And I have tried #follow. no luck.

  • 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-06-07T10:39:41+00:00Added an answer on June 7, 2026 at 10:39 am

    create your own function:

    function myecho($text){
        echo "<div class='your_css_class'>".$text."</div>";
    }
    

    And when you want to echo something just write myecho("my message");

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

Sidebar

Related Questions

When you do the following in an HTML form: <input name=one[] value=foo /> <input
Say I have an array of key/value pairs in PHP: array( 'foo' => 'bar',
Possible Duplicate: In PHP, how do you change the key of an array element?
What's the equivalent of php's in_array or IList.Contains in C#.net. I'm a C n00b
EDIT: The cause of the errors (see below): my default primary key in doctrine_pi.php
I want to do following: Make Oracle stored procedure for read all data from
I'd like to make an associative array in PHP where the key is a
The most recent comment on PHP's in_array() help page ( http://uk.php.net/manual/en/function.in-array.php#106319 ) states that
The following code is from a tutorial ( http://net.tutsplus.com/php/creating-a-php5-framework-part-1/ ), not mine. I have
I have the following db and php. I am trying to make a unordered

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.