Php Form Examples Php code to upload a file to server using php formsA file up-loader example built using phpList of Error Constants while uploading a file through forms using phpPhp code to process an uploaded filePhp code to upload file using formPhp code to handle form actionPhp code to send email using html formsSimple php code example to send email with cc and bccPhp Code example to dynamically build select query using form inputsPhp code to respond to checkboxes actionPhp code example to make a form with checkboxes having the same name to store multiple valuesChecking input from a checkbox or a multiple select Validating a single checkbox Using Default Checkbox Values Deal with Array Form Data A process_form() Function Access widget's form value Accessing multiple submitted values Calculation based on form data Forms and PHP Feedback Form Handling Special Characters multivalue-forms.php Saying "Hello" An HTML Form That Calls Itself Combined Feedback Form Form submitting GET vs. POST Making a multipage form One-script form processing Preventing Multiple Submissions on the Client Side Preventing Multiple Submissions on the Server Side Form select input An HTML Form Including a SELECT Element A select menu with different choices and values A day choice select menu An HTML Form with a select Element Validating a drop-down menu with in_array() Displaying a select menu Generating a dynamic pull-down menu Setting a default value in a select menu Setting defaults in a multi-valued select menu Creating Form Elements Based on the Current Time and/or Date Creating Form Elements with Multiple Options One choice for each day from 1 to 31 One choice for each year from last year to five years from now A Simple HTML Form Form value validationForm Data Validation With Error Count A Sample Form Element Validation Function Displaying error messages with the form Elementary Form Validation Form Example for the Form Validator Script Validating form data print a radio button or checkbox print a select menu print a submit button print a text box print a textarea HTML elements for use in forms HTML Form Elements HTML form for submitting data Working with Multipage Forms Process the results Saving State with a Hidden Field Using a hidden parameter to indicate form submission Checking for the existence of an uploaded file Uploading a file Passing Complex Values in a Querystring Passing Numeric Values in a Querystring Passing String Values in a Querystring parse_str() function parses string into various variables, setting the variables in the current scope. parse_str.php Validating a radio button Checking input from a radio button or a single select Form radio buttons Call MySelf PHP A PHP Number-Guessing Script Get Text Field value Form Numeric value Disable TextBox urlencode demo Properly Checking for Submission Using Image Widgets Time-Sensitive Form Example Using Arrays with Form Data in PHP Reading Input from the Form Basic PHP form processing Changing a value in $_POST if else to check posted variables Verifying a required element Superglobals vs. Globals Testing a required field Set Cookie Data $_SERVER extracts valuable server- and script-related information Adjusting behavior based on an environment variable Deciding what to do based on request method Log use IP address Getting Times and Dates of FilesPHP $_SERVER Arguments superglobal variables Output file time Some Common $_SERVER Elements

Php Code : A Day Choice menu in php

 
<?
$midnight_today = mktime(0,0,0);
print '<select name="date">';
for ($i = 0; $i < 7; $i++) {
    $timestamp = strtotime("+$i day", $midnight_today);
    $display_date = strftime('%A, %B %d, %Y', $timestamp);
    print '<option value="' . $timestamp .'">'.$display_date."</option>\n";
}
print "\n</select>";
?>