Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $name = $_POST['name'];
- $surname = $_POST['surname'];
- $gender = $_POST['gender'];
- $add = $_POST['address'];
- $city = $_POST['city'];
- $pin = $_POST['pincode'];
- $mobile = $_POST['mobile'];
- ?>
- <html>
- <head>
- <title> User Form Details </title>
- </head>
- <body align='center'>
- <hr>
- <h3> User Details </h3>
- <hr>
- <table border='0' align='center' title='User Details'>
- <tr>
- <td>Name </td>
- <td>: <?php echo $name; ?></td>
- </tr>
- <tr>
- <td>SurName </td>
- <td>: <?php echo $surname; ?></td>
- </tr>
- <tr>
- <td>Gender </td>
- <td>: <?php echo $gender; ?></td>
- </tr>
- <tr>
- <td>Address </td>
- <td>: <?php echo $add; ?></td>
- </tr>
- <tr>
- <td>City </td>
- <td>: <?php echo $city; ?></td>
- </tr>
- <tr>
- <td>Pin </td>
- <td>: <?php echo $pin; ?></td>
- </tr>
- <tr>
- <td>Mobile </td>
- <td>: <?php echo $mobile; ?></td>
- </tr>
- </table>
- </body>
- </html>
- <?php
- echo "<hr>";
- print_r($_POST);
- echo "<hr>";
- echo "<p>UserName : ".$name;
- echo "<p>Surname : ".$surname;
- echo "<p>Gender : ".$gender;
- echo "<p>Address : ".$add;
- echo "<p>City : ".$city;
- echo "<p>Pin : ".$pin;
- echo "<p>Mobile : ".$mobile;
- echo "<hr>";
- echo "<p> <b>gettype();</b> funcation";
- echo "<p>Pincode Type is : ".gettype($pin);
- echo "<hr>";
- echo "<p> <b>settype();</b> funcation";
- echo "<p> Pincode Type Set ".settype($pin,'integer');
- echo "<p> After <b> Pincode </b> Type is : ".gettype($pin);
- echo "<hr>";
- echo "<p>Variable Set or Not ?".isset($pin);
- var_dump(isset($pin));
- ?>
Add Comment
Please, Sign In to add comment