PDA

View Full Version : Any Possible to directly edit in html output page using php



jeganathan
11-29-2010, 06:27 AM
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..

Fumigator
11-29-2010, 06:51 AM
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.