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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T10:41:37+00:00 2026-06-16T10:41:37+00:00

I am newbie for iPhone application. I have followed this tutorial for login from

  • 0

I am newbie for iPhone application. I have followed this tutorial for login from iPhone.

I have php file as below.


CODE


index.php

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        $user = $_POST['uname'];

        if ($user == 'user') {
            echo "Welcome to my site...";
        } else {
            echo "Invalid User";
        }
        ?>
    </body>
</html>

When I run application and enter username as user and password as some text, I get output in iPhone as below


OUTPUT

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
            Welcome to my site...
    </body>
</html>

The output that I was expecting is only text Welcome to my site…, however I get full HTML code.

Any idea why I get like this? What changes do I have to need to do in PHP file?

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

    as per the iphone application development tutorial they are using standard sdk for creating buttons and text boxes it is not html, if you want to create your login form using html in iphone use webView, as you are printing full html code it is showing your that only, put only following code in your index.php file

    <?php
      $user = $_POST['uname'];
      if ($user == 'user') {
           echo "Welcome to my site...";
      } else {
          echo "Invalid User";
      }
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am newbie for iPhone application. I have followed this tutorial for login from
I am newbie for iPhone application. For storing data, I am following this tutorial
I'm a newbie doing Objective-C, coming from Flex/Actionscript development. I have an iPhone app
I am a newbie in iPhone Development.I developed an iPhone Application and installed this
Hi i'm a newbie to iphone application development.. present i'm working on Picasa web
I am newbie for iPhone application and I want to create iPhone application based
I'm a relative newbie on iPhone app development but have successfully created a tab
another iPhone newbie question... I have the following: NSPersistentStoreCoordinator NSManagedObjectContext NSManagedObjectModel Is it possible
I am a newbie in iPhone development, doing my first app. I have some
I am a newbie to iPhone development and have some basic questions to ask

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.