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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:21:49+00:00 2026-06-05T05:21:49+00:00

This my php code. this is creating to html codes that is below. foreach($sorular->soruCek($_GET[kategori])

  • 0

This my php code. this is creating to html codes that is below.

foreach($sorular->soruCek($_GET["kategori"]) as $data)
{
    $kontrol = $sorular->cevapCek($data["id"]);
    if($kontrol)
    {
        echo $data["soru"] . '<br/>';
            foreach(@$sorular->cevapCek($data["id"]) as $veri)
            {
                ?>
                <input type="radio" name="soru<? echo $data["id"]; ?>" value="<? echo $veri["id"]; ?>"/><? echo $veri["cevap"]; ?>
                <?
                echo "<br/>";
            }
        echo "<br/>";
    }
}

Result:
enter image description here

  • 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-05T05:21:51+00:00Added an answer on June 5, 2026 at 5:21 am

    PHP is a templated language. Any spaces outside of php tags are sent to the browser.

    <?php $a = 'foo';?>
                            <input type="string" />
    <?php $b = 'bar';?>
    

    Input will be indented that many spaces. Regarding ‘formatting’ your html markup:

    1) Don’t worry about formatting your HTML as long as it validates or displays correctly in the browser.

    2) You should be minifying your output anyway, eliminating those spaces.

    3) If you really want your HTML to be prim-and-proper you can use Tidy on your output.

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

Sidebar

Related Questions

I have some php code that is creating an html table. Within it I
This is the PHP code that acts as 'action' for another HTML page that
I have this PHP code that resizes images perfectly: smart_resize_image(path/to/image.jpg); Now I want to
I am using this PHP code: if (isset($_GET['c'])) { $pages = array(home, upload, signup);
For example… This PHP code <?php echo '<html>'; echo '<body>'; echo '<h1>Header One</h1>'; echo
I'm creating a demo that must be in html code only (no server side
I have this php code: $db = new mysql; $new_bad = $_POST['new_bad']; $new_replace =
I found this PHP code in an app I have to modify... $links =
I have this php code $jsonArray = array(); $sql = SELECT ID,CLIENT FROM PLD_SERVERS;
I have this PHP code in a loop for every post on the admin

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.