Skip to content

Instantly share code, notes, and snippets.

@samroar
Created November 19, 2014 18:39
Show Gist options
  • Save samroar/2cfb2ecf25aa569f2c81 to your computer and use it in GitHub Desktop.
Save samroar/2cfb2ecf25aa569f2c81 to your computer and use it in GitHub Desktop.
<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