PHP Coding Tips

Wednesday, November 14, 2012

A three-line guestbook in PHP

Below you can see a short script that causes to write somthing you enter a form to a file. Each entry is appended in new line.<form method=post><input name=a><input type=submit></form> <?php if($_POST['a'])file_put_contents('z.txt',$_POST['a']."\n",FILE_APPEND);

12 comments:

  1. This is really wonderfull blog post. I noticed this blog further more useful information. Thanks for sharing your useful views.
    Web Designing Company in Chandigarh

    ReplyDelete