![]() |
![]() |
Products |
This is a revenue share forum | ||
|
|||
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
help needed: how to update php values?
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 |
|
||||
|
||||
|
hai
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> |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What Can Php Scripts Online Do for your Website? | balbata | Programming / Scripts | 3 | 04-24-2009 01:52 PM |
| PHP confusion | Buggy123 | Programming / Scripts | 1 | 10-14-2008 07:46 PM |
| Indian PHP developer | shru_development | Making Money / Main Discussion Forum | 0 | 04-12-2008 09:48 AM |
![]() |
![]() |
![]() |