User Tools

Site Tools


kurs:form_1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

kurs:form_1 [2014/09/10 21:22] (current)
Line 1: Line 1:
 +<code php> 
 +<?php 
 +if(array_key_exists("​myname",​$_POST )&&​($_POST['​myname'​])){ 
 + print("​Hallo $_POST[myname]"​);​ 
 +} else 
 +echo<<<​_HTML 
 + <​table>​ 
 + <form method="​post"​ action="​$_SERVER[PHP_SELF]">​ 
 + <​tr>​ 
 + <​td>​Ihr Name:</​td>​ 
 + <​td><​input type="​text"​ name="​myname"​ value=""></​td>​ 
 + </​tr>​ 
 + </​tr>​ 
 + <​td>&​nbsp</​td>​ 
 + <td align=right><​input type="​submit"​ value="​Sag Hallo"></​td>​ 
 + </​tr>​ 
 + </​form>​ 
 + </​table>​ 
 +_HTML; 
 +?> 
 +</​code>​
kurs/form_1.txt · Last modified: 2014/09/10 21:22 (external edit)