PHP Classes

File: fwphp/glomodul/z_examples/AJAX_form_valid/ajax/1005_Ajax_Example_ajax.php

Recommend this page to a friend!
  Classes of Slavko Srakocic   B12 PHP FW   fwphp/glomodul/z_examples/AJAX_form_valid/ajax/1005_Ajax_Example_ajax.php   Download  
File: fwphp/glomodul/z_examples/AJAX_form_valid/ajax/1005_Ajax_Example_ajax.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change: Update of fwphp/glomodul/z_examples/AJAX_form_valid/ajax/1005_Ajax_Example_ajax.php
Date: 1 year ago
Size: 433 bytes
 

Contents

Class file image Download
<?php

//This recieves the data passed from JavaScript
//if (is_object($_POST['data'])) {
   //$myData = json_decode($_POST['data']) ;
//} else {
  
$myData = $_POST['data'] ;
//}

print "<p>Hello from ". basename(__FILE__) .", THIS IS : " ;
 
print_r( $myData );
print
"</p>";


/*
$myObj = new stdClass();
$myObj->name = "John";
$myObj->age = 30;
$myObj->city = "New York";

$myJSON = json_encode($myObj);

echo $myJSON;
*/


?>