PHP online registrations for cars

Feb 26, 2011 Author: Dusan

This is small not so confusing php script for online registration for cars. There is no database in the script and it just echo the result you write in the empty text field.

<html><head><title>Online registration for cars</title>
</head>
<body>
<form action="formular.php" method="post">
Please enter your name
<input type="text" name = "name" size="50">   
Please choose your model <input type="radio" name="model" value="PHP334">PHP334 <input type="radio" name="model" value="PHP555">PHP555
Please enter you serial number <input type="text" name="s_number" size="30"><br> <input type="submit" name="Send">
</body> </html>

formular.php

<html>  
<head>

</head>
<body>
<?php
    $name = $_POST ['name'];
    $model = $_POST ['model'];
    $s_number = $_POST ['s_number'];
    if ($name != null){
        echo ("Thank you for your registration, $name 
"); } if (($model != null) && ($s_number != null)) { $message = "Your registration car, model $model, with number $s_number, was successfuly registrated"; echo ($message); } ?> </body> </html>


views 48289
  1. Add New Comment

gravatar
arun n mani
March 6,2011 at 15:28:49
onnumilla parayan