SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Angry Php passing information problem

    hi, i m doing php and i m making a page to pass on the info to other page. but when i click submit. the final page prompt for download. anyone know whts be the problem?

  2. #2
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    cn you be a bt mre spcfic?

  3. #3
    SitePoint Wizard bronze trophy Kailash Badu's Avatar
    Join Date
    Nov 2005
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you sure you have PHP set up correctly in your machine?

  4. #4
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Angry

    well here i paste the code.
    this is the basic html page
    Code HTML4Strict:
    <form action="access.php" method="post">
    Name:
        <input type="text" name="fname" />
    Last Name:
    <input type="text" name="lname"  />
     
        <label>
        <input type="submit" name="Submit" value="Submit" />
        </label>
     
    </form>
    and this the page which get the information on sumbit its a php page
    Code PHP:
    <p>Hello, Welcome Mr.
    <?php echo $_POST['fname'];?>
    </body>
    when i click sumbit it gives me pop-up of download box for the php file

  5. #5
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Question

    anyone solve my question

  6. #6
    SitePoint Addict
    Join Date
    Aug 2007
    Posts
    365
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It means you haven't set up your web server correctly, as it is not parsing the PHP files

  7. #7
    SitePoint Wizard bronze trophy Kailash Badu's Avatar
    Join Date
    Nov 2005
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, it indeed does look like as if PHP hasn't been correctly set up in your web server.

  8. #8
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Well it does pass on information on other pages i created

  9. #9
    SitePoint Member
    Join Date
    Jul 2007
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ammark View Post
    hi, i m doing php and i m making a page to pass on the info to other page. but when i click submit. the final page prompt for download. anyone know whts be the problem?
    Probably something with your server / connection.

  10. #10
    SitePoint Guru brent5392's Avatar
    Join Date
    Dec 2005
    Location
    Australia
    Posts
    636
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Does the file have the correct extension?
    PHP | MySQL | (X)HTML | CSS


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •