Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Any Possible to directly edit in html output page using php

    Hi,

    demo1.html

    <html>
    <body>
    <form action = "action.php" method = "post">
    <p>Name:<input type="text" name = "name"/></p>
    <p>Age:<input type="text" name = "age"/></p>
    </form>
    </body>
    </html>

    action.php

    echo "Hi <b>">$_POST['name']."</b>,Welcome!":
    echo "You are".$_POST['age']."Years older!";


    My doubt

    In this small example, Directly I want edit the name and age in html output screen. What is the code for editing in html output screen..

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    You must refresh the page to modify the HTML output from PHP, unless you use Ajax, which isn't just using PHP, it's also using Javascript.


  •  

    Posting Permissions

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