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

Recommend this page to a friend!
  Classes of Emmanuel Podvin  >  Blapy  >  demos/demo3-posted-input/testInitForm.php  >  Download  
File: demos/demo3-posted-input/testInitForm.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: provided json data should be compliant to json format ;)
Date: 3 years ago
Size: 471 bytes
 

Contents

Class file image Download
<?php
	if (empty($_POST['fname'])) $_POST['fname'] = '[no first name given]';
	if (empty($_POST['lname'])) $_POST['lname'] = '[no last name given]';
	?>
	<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>