use ==
operator for comparison instead of =
because the second one is for assignment.
if ($_POST['man']== null )
{
print ('has no value');}
else {
print ($_POST['man']);
}
More Related Contents:
- How to add a PHP to my html table? [closed]
- Is the following code valid? [closed]
- How do I add PHP code/file to HTML(.html) files?
- Using .htaccess to make all .html pages to run as .php files?
- Seo Friendly URL results in CSS IMG and JS not working
- How to prevent form resubmission when page is refreshed (F5 / CTRL+R)
- Keep values selected after form submission
- How do I make a PHP form that submits to self?
- How can I run a PHP script inside a HTML file?
- How to prevent multiple inserts when submitting a form in PHP?
- HTML Scraping in Php [duplicate]
- Strip all HTML tags, except allowed
- Can you put PHP inside PHP with echo? [closed]
- How to add text to an image with PHP GD library
- Could not instantiate mail function. Why this error occurring
- PHP form – on submit stay on same page
- Equivalent of include() in HTML
- file_get_contents() give me 403 Forbidden
- How to set selected value of HTML select box with PHP
- Parse HTML as PHP
- Dynamic table in HTML using MySQL and php
- Convert .doc to html in php [closed]
- getting all values from h1 tags using php
- Get variable from PHP file using JQuery/AJAX
- How to save webpage as a image file using PHP?
- Multiple javascript/css files: best practices?
- Creating dynamic tables in HTML using MySQL and PHP
- How to place two forms on the same page?
- navigate back with PHP form submission
- find and replace keywords by hyperlinks in an html fragment, via php dom