Created
November 19, 2014 18:39
-
-
Save samroar/2cfb2ecf25aa569f2c81 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="" method="POST"> | |
<label><br>First Name</br><input type = "text" name = "firstName"></label> | |
<label><br>Last Name</br><input type = "text" name = "lastName"></label> | |
<label><br>Sex</br><input type = "text" name = "sex"></label> | |
<label><br>DOB</br><input type = "date" name = "dob"></label> | |
<label><br>Email</br><input type = "text" name = "email"></label> | |
<label><br>Type</br><input type = "text" name = "type"></label> | |
<label><br>Password</br><input type = "text" name = "password"></label> | |
<?php if($_GET['what'] == 'doctor') { ?> | |
<label><br>Experience</br><input type = "number" name = "experience"></label> | |
<?php } ?> | |
<?php if($_GET['what'] == 'patient') { ?> | |
<label><br>History</br><input type = "text" name = "history"></label> | |
<label><br>Blood Group</br><input type = "text" name = "bloodGroup"></label> | |
<?php } ?> | |
<input type = "hidden" name = "action" value = "<?php echo $_GET['action']; ?>"> | |
<input type = "hidden" name = "what" value = "<?php echo $_GET['what']; ?>"> | |
<?php if($_GET['action'] == 'edit') { ?> | |
<input type = "hidden" name = "id" value = "<?php echo $_GET['id']; ?>"> | |
<?php } ?> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment