File: demos/demo3-posted-input/testPutForm.php

Recommend this page to a friend!
  Classes of Emmanuel Podvin   Blapy   demos/demo3-posted-input/testPutForm.php   Download  
File: demos/demo3-posted-input/testPutForm.php
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Blapy
jQuery plugin to load linked pages using AJAX
Author: By
Last change: Update of demos/demo3-posted-input/testPutForm.php
Date: 3 years ago
Size: 1,044 bytes
 

Contents

Class file image Download
<?php parse_str(file_get_contents('php://input'), $_POST); if (empty($_POST['fname'])) $_POST['fname'] = '[no first name given]'; if (empty($_POST['lname'])) $_POST['lname'] = '[no last name given]'; ?> <div id="resultForm" data-blapy-container="true" data-blapy-container-name="resultForm" data-blapy-container-content="resultForm" data-blapy-update="force-update"> <?php echo '<div>your firsname is <b>'.$_POST['fname'].'</b> and your lastname is <b>'.$_POST['lname'].'</b></div>'; ?> </div> <div id="resultForm3" data-blapy-container="true" data-blapy-container-name="resultFormJson" data-blapy-update="json" > {"fname": "<?php echo $_POST['fname']?>","lname": "<?php echo $_POST['lname']?>"} </div> <div id="resultForm3" data-blapy-container="true" data-blapy-container-name="resultForm2Json" data-blapy-update="json" > [ {"fname": "<?php echo $_POST['fname']?>","lname": "<?php echo $_POST['lname']?>"}, {"fname": "<?php echo $_POST['fname']?> bis","lname": "<?php echo $_POST['lname']?> bis"} ] </div>