Retaining values in a form - Php

Retaining values

Snippet Code


  
Rate this page :
  [ 0 votes]

Here the @ symbol is used to suppress the errors. We can also use isset method.

If we are using post method to get data we can use: <input type="text" name="email" value="<?php echo @$_POST['email'];?>"> If we are using get method, use $_GET['email'] instead of $_POST['email'].

Tags


Ask Questions

Ask Question