You are here: Technology, Web & Business Forum
: Web Development
: Programming
:
help needed: how to update php values?
|
Welcome to the Technology, Web & Business Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| Programming Discuss programming languages such as .NET, PHP, PERL, ASP, ColdFusion, C++
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
|||
Hi
I'm php newbie. For example, I have a php file like this: php Code: <? $value1="content1"; $value2="content2"; ?> Now I want to create a HTML site with 2 input forms allow me change the values (content1, content2) without edit above file manually. I can enter new data and click update button, then it will update new values of above php file. How do I create this file? There are no SQL DB or complicated functions. Thank you
__________________
frontline plus fleas |
|
|||
|
|||
make test.php content
<?php if (isset($_POST["Send"])) { echo "value 1: {$_POST["value1"]} <br> Value 2:{$_POST["value2"]}"; } ?> <br> <FORM method="POST" action="test.php"> <table border="0" cellpadding="2"> <tr> <td>value1</td> <td><input type="text" name="value1" size="30"> </td> </tr> <tr> <td>value2</td> <td><input type="text" name="value2" size="30"> </td> </tr> <tr> <td colspan="2"> <div align="center"> <input type="submit" name ="Send" value ="Send" > </div></td> </tr> </table> </FORM>
__________________
Hotel Madrid |



Linear Mode
