PHP Classes

File: fwphp/glomodul/z_examples/AJAX_form_valid/show_phpparam.php

Recommend this page to a friend!
  Classes of Slavko Srakocic   B12 PHP FW   fwphp/glomodul/z_examples/AJAX_form_valid/show_phpparam.php   Download  
File: fwphp/glomodul/z_examples/AJAX_form_valid/show_phpparam.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/show_phpparam.php
Date: 1 year ago
Size: 856 bytes
 

Contents

Class file image Download
<?php
$param
= null; $par2 = null;
if (isset(
$_GET["param"])) $param = $_GET["param"];
if (isset(
$_GET["par2"])) $par2 = $_GET["par2"];
//list($param, $par2) = explode('|', $_REQUEST['user_text']);
//$response = strtoupper( $user_text ) ;
//echo $response ;
?>

<span style="?background-color:#cccccc;">Ispisala skripta: <?php echo basename(__FILE__) ; ?></span>

<br><br>1. Ova php skripta je pozvana asinhronim JS requestom
(kao klijent-serverski potprogram) sa parametrima:
<ol>
  <li>param=<?php echo $param; ?>
<li>par2=<?php echo $par2; ?>
</ol>

<hr />
2. \n = Line break u JS alertu: lijeva kosa pa n,
<strong>obavezno u dvostrukim navodnicima</strong> (&quot;&quot;).

<hr />
3. <strong>U JS alert ne ide html</strong>, npr $lt;hr>.<br>
Zato je bolje print php-a ispisivati JS-om u div-u ili spanu html-a.

<hr />
4. Vidi L1 (Ballard).
<br>