Location: PHPKode > scripts > MyPhonebook > myphonebook/html/xampp/htdocs/myphonebook/process3.php
<?php


$name = $_POST['name'];
$fname = $_POST['fname'];
$address = $_POST['address'];
$city =$_POST['city'];
$state =$_POST['state'];
$plz =$_POST['plz'];
$country =$_POST['country'];
$phone =$_POST['phone'];
$mobile =$_POST['mobile'];
$fax =$_POST['fax'];
$officephone = $_POST['officephone'];
$email =$_POST['email'];
$website =$_POST['website'];
$annotations = $_POST['annotations'];


//variabel fichier définéiren

$data = 'data/';
$data2 = 'data2/';
$applic ='.php';
$userfile = $data . trim($name) . trim($fname) . $applic;
$userfile2 = $data2 . trim($name) . trim($fname) . $applic;
$user2 = '2';
$userfile3 = trim($name) . trim($fname) .$user2 . $applic;
$includes = trim($name) . trim($fname) . $applic;



//fichier créieren a schreiwen
$entry = '<?php';
$entry1 = '$user[]= "';
$entry2 ="<tr><td> $name &nbsp </td><td>$fname &nbsp</td><td> $phone &nbsp </td><td> $mobile &nbsp </td><td> $fax &nbsp </td><td><a href='mailto:$email'>$email</a> &nbsp </td> <td> <a href='$userfile2' target='_blank'>Details</a> </td> <td> <a href='$userfile3' target='iframe'>Modify</a></td></tr>";
$entry3 ='";';
$entry4 = '$name=' . "'$name'; \n";
$entry5 = '$fname=' . "'$fname'; \n";
$entry6 = '$address=' . "'$address'; \n";
$entry7 = '$city=' . "'$city'; \n";
$entry8 = '$state=' . "'$state'; \n";
$entry9 = '$plz=' . "'$plz'; \n";
$entry10 = '$phone=' . "'$phone'; \n";
$entry11 = '$mobile=' . "'$mobile'; \n";
$entry12 = '$fax=' . "'$fax'; \n";
$entry13 = '$officephone=' . "'$officephone'; \n";
$entry14 = '$email=' . "'$email'; \n";
$entry15 = '$website=' . "'$website'; \n";
$entry16 = '$annotations=' . "'$annotations'; \n";
$entry17 = '?>';




$open = fopen("$userfile",'wb');

fwrite($open," ");
fclose($open);





//HTML aschreiwen

$open3 = fopen("$userfile2",'wb');
fwrite($open3," ");

fclose($open3);


//HTML Modificatioun Fichier schreiwen

$open4 = fopen("$userfile3",'wb');
fwrite($open4," ");

fclose($open4);









?>



<script language="JavaScript">
parent.location.replace('index.php');
</script>

Return current item: MyPhonebook