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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:21:18+00:00 2026-05-26T00:21:18+00:00

I have a page with the following code: <div data-role=page id=personaldetails> <div data-role=header> <h1>ENTER

  • 0

I have a page with the following code:

<div data-role="page" id="personaldetails">
    <div data-role="header">
        <h1>ENTER PERSONAL DETAILS</h1>
    </div><!-- /header -->

    <div data-role="content">

        <div data-role="fieldcontain">
            <label for="name">Name:</label>
            <input type="text" name="name" id="name" value=""  />

            <label for="name">Phone Number:</label>
            <input type="text" name="phone" id="phone" value=""  />

            <label for="address">Address:</label>
            <textarea cols="40" rows="10" name="address" id="address"></textarea>
        </div>  

        <p><a href="#confirmscreen" data-role="button">Input Incident Details</a> </p>

    </div><!-- /content -->

    <div data-role="footer">
        <h4></h4>
    </div><!-- /footer -->
</div><!-- /page -->

And I try to do this in another page:

<div data-role="page" id="confirmscreen">
    <div data-role="header">
        <h1>DETAILS TO SEND</h1>
    </div><!-- /header -->

    <div data-role="content">

        <div data-role="fieldcontain">
            <script type="text/javascript">
                $('<p>').html($('#phone').val()).appendTo('body');
            </script>
        </div>  

        <p><a href="http://google.com/" data-role="button">Fin</a> </p>

    </div><!-- /content -->

    <div data-role="footer">
        <h4></h4>
    </div><!-- /footer -->
</div><!-- /page -->

I’m trying to output the phone text area but I’m getting a blank space instead of the phone number I entered.

Do I need to maybe submitt he form or something to get it to work? If so how would I do it?

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

    You need to perform a PHP Post. A PHP Post() is a method used in PHP to pass info from one page to another. This is how I would set it up

    Assuming you have your Original Page, I am going to call it index.php. You probably have it as index.html right now. Change the ending to .php, and re-open your document. Now, follow along

    You have right now this:

    <div data-role="page" id="personaldetails">
        <div data-role="header">
            <h1>ENTER PERSONAL DETAILS</h1>
        </div><!-- /header -->
    
        <div data-role="content">
    
            <div data-role="fieldcontain">
                <label for="name">Name:</label>
                <input type="text" name="name" id="name" value=""  />
    
                <label for="name">Phone Number:</label>
                <input type="text" name="phone" id="phone" value=""  />
    
                <label for="address">Address:</label>
                <textarea cols="40" rows="10" name="address" id="address"></textarea>
            </div>  
    
            <p><a href="#confirmscreen" data-role="button">Input Incident Details</a> </p>
    
        </div><!-- /content -->
    
        <div data-role="footer">
            <h4></h4>
        </div><!-- /footer -->
    </div><!-- /page -->
    

    Now where you have this:

            <label for="name">Name:</label>
            <input type="text" name="name" id="name" value=""  />
    
            <label for="name">Phone Number:</label>
            <input type="text" name="phone" id="phone" value=""  />
    
            <label for="address">Address:</label>
            <textarea cols="40" rows="10" name="address" id="address"></textarea>
    

    You are going to want to enclose it in a form, and make it look like this

     <form action="page2.php" method="post">
            <label for="name">Name:</label>
            <input type="text" name="name" id="name" value=""  />
    
            <label for="name">Phone Number:</label>
            <input type="text" name="phone" id="phone" value=""  />
    
            <label for="address">Address:</label>
            <textarea cols="40" rows="10" name="address" id="address"></textarea>
            <input type="submit" value="Report Incident Details" />
    </form>
    

    If you notices, I enclosed the inputs in a Form tag and added action=”page2.php” method=”post” to the tag’s attributes. This means when the form is submitted, the data will be sent to the second page you want it to be on. We also included the Submit Button within the form area.

    Now the second page should look like this

    <div data-role="page" id="confirmscreen">
        <div data-role="header">
            <h1>DETAILS TO SEND</h1>
        </div><!-- /header -->
    
        <div data-role="content">
    
            <div data-role="fieldcontain">
                <?php echo $_POST["name"]; ?><br />
                <?php echo $_POST["phone"]; ?><br />
                <?php echo $_POST["address"]; ?><br />
            </div>  
    
            <p><a href="http://google.com/" data-role="button">Fin</a> </p>
    
        </div><!-- /content -->
    
        <div data-role="footer">
            <h4></h4>
        </div><!-- /footer -->
    </div><!-- /page -->
    

    That should do that trick. Have fun!

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

Sidebar

Related Questions

I have the following code: @{ ViewBag.Title = Index; } <h2> Index</h2> <div data-role=page>
i have following code to show div on page <div id=all_users> <div id=user11 userid=11
I have a login page using jQuery Mobile which contains the following code: <div
I have the following code in my page: <div id=data_body_container style=overflow: auto; width: 880px;
I have the following code in a jsp page (Struts backed): <c:if test=${USERINFO.someproperty ==
I have the following code on my page: <p align=justify style=font-size:10pt;display:block;height:200px;vertical-align:middle;> Content </p> I
I have the following code in my Site.Master page of an almost empty ASP.NET
I have the following code in a jQuery JavaScript document running on a page
I have the following code in the top frame of a two frame page:
Morning stackoverflow, I have a repeater, with the following code in my aspx page;

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.