answersLogoWhite

0


Best Answer

Here's a quick example on how to do it.

<?php if(isset($_POST['send'])) {

if($_POST['answer'] == 'My Answer')

echo 'You got it!';

else echo 'Wrong answer.';

}

?>

<form method="post" action="you_file_name_here">

What is the answer to this question?

<br>

<input type="text" name="answer">

<input type="submit" name="send" value="Check it!">

</form>

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you create a simple questionnaire using php?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why do we use Php?

PHP is an Open Source Scripting Language. We can create Web Pages and Web Applications using PHP.


How do you create a web mail script using PHP?

You can use phpMailer() Or, you can use mail() PHP function to send emails via PHP script.


How do you make a blog using PHP and MySQL?

You can create blog in php. In fact, many blogs on the internet created using php. There are many readymade blogs which you can install on your own server. Or, if you wish, you can create your own blog application. Simply, blog is a dynamic website (users can add, delete, update content) and PHP was designed for creation of dynamic websites.


Why is PHP used?

PHP is used to create dynamic websites, this is a step up from HTML as it allows you to do much more than creating static websites. Using a language such as PHP also gives you access to using databases with your website such as MySQL.


How can you create a website without using a host like Shutterfly?

Maybe try mySQL or PHP?


How do you create a redirect webpage?

If you are using PHP you could use this code: (In the &lt;head&gt;) &lt;?php HEADER("Location: http://www.rasclerhys.com"); ?&gt; That should automatically take you to "www.rasclerhys.com"


How do you create a DIV type file using PHP?

A file with the DIV file extension is a DivX Movie file, it cannot be created with PHP. PHP is a web programming language for web site building.


What is the difference between simple php and core php?

The terms &quot;simple PHP&quot; and &quot;core PHP&quot; are not commonly used in the web development community, but based on the context, we can provide an explanation of what they might refer to: Simple PHP: &quot;Simple PHP&quot; is a vague term that could refer to using basic PHP syntax and features without incorporating any advanced frameworks or libraries. In this context, &quot;simple PHP&quot; typically means writing PHP code without relying on additional tools or external dependencies. It implies a straightforward and minimalistic approach to PHP development. Core PHP: &quot;Core PHP&quot; refers to the fundamental and essential features of the PHP programming language itself. Core PHP includes the core functions, language constructs, and syntax provided by PHP without the use of any external libraries or frameworks. It involves writing PHP code in its purest form, utilizing the features and functionalities offered by the PHP language without any additional abstractions. In summary, &quot;simple PHP&quot; suggests a minimalistic approach to PHP development, while &quot;core PHP&quot; focuses on utilizing the essential features and syntax of the PHP language itself without relying on external dependencies. It's worth noting that both terms are not widely used, and their exact definitions may vary depending on the context and the individuals using them.


How do you install crystal reports for php?

how to create report in php


How does you create a delete button in PHP using Dreamweaver?

That question doesn't make much sense...delete for what?


How do you make a login using PHP?

Create an HTML form with METHOD="post" and ACTION="login2.php". In login2.php check if the entered username and password are correct. You can get the username with $_POST['name_of_username_input']. The same goes for the password.


How do you print an HTML table using PHP?

It is really simple to print an HTML table in PHP, all you have to do is the following: &lt;?php print "&lt;table&gt;"; print "&lt;tr&gt;"; print "&lt;td&gt;hello&lt;/td&gt;"; print "&lt;/tr&gt;"; print "&lt;/table&gt;"; ?&gt;