answersLogoWhite

0

Assuming you are using Method="POST" then following:

$myinput = $_POST['thename'];

If your Method="GET" then the following:

$myinput = $_GET['thename'];

The Name is set as follows:

<input type="text" name="thename" />

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How do you separate word in array using php?

To separate a sentence into an array of words, you can use PHP's explode() function. If $text is your sentence, then use the following: $result = explode(" ", $text);


How do you read a PDF file line by line in PHP or is there a way to create a text file from PDF file using PHP?

You can use libraries like TCPDF or FPDF in PHP to extract text from a PDF file, but reading a PDF line by line directly is not straightforward as PDF files do not have a specific line structure like text files. To create a text file from a PDF, you can use libraries like MPDF or PDFlib in PHP to extract text content and write it to a text file.


What is the result if you use an input text in php?

$_POST is used see below for how. Firstly, in your form add a hidden feild: &lt;input type="hidden" name="hasposted" value="true" /&gt; Somewhere in your form. Then above the form add the following: &lt;?php if($_POST['hasposted'] '1'){ $mycheckbox = true; } else { $mycheckbox = false; } echo '$mytext ' . $mytext . '&lt;br /&gt;$mycheckbox '. $mycheckbox; } ?&gt; &lt;form method="POST" action="#"&gt; &lt;input type="hidden" name="hasposted" value="true" /&gt; &lt;label&gt;Textbox: &lt;input type="text" value="" name="mytext" /&gt;&lt;/label&gt;&lt;br /&gt; &lt;label&gt;Checkbox: &lt;input type="checkbox" value="1" name="mycheckbox" /&gt;&lt;br /&gt; &lt;br /&gt; &lt;input type="submit" value="Post" /&gt; &lt;/form&gt; I've posted links to W3Cschools with information on these and all other Form Elements.


How do you use PHP and MySQL to populate information in a form?

Working at hostmysite.com gives me a lot of experience with PHP and mysql. All you need to do is use a mysql query to grab information from a database. From there you can enter easily use the returned data to a form. Here is an example: &lt;?php $query = sprintf("SELECT firstname, lastname, address, age FROM friends LIMIT 1"); $result = mysql_query($query); if (!$result) { $message = 'Invalid query: ' . mysql_error() . "\n"; $message .= 'Whole query: ' . $query; die($message); } while ($row = mysql_fetch_assoc($result)) { $firstname = $row['firstname']; $lastname = $row['lastname']; $address = $row['address']; $age = $row['age']; } echo ' &lt;form method="post"&gt; &lt;input name="firstname" value="'.$firstname.'"&gt; &lt;input name="lastname" value="'.$lastname.'"&gt; &lt;input name="address" value="'.$address.'"&gt; &lt;input name="age" value="'.$age.'"&gt; &lt;/form&gt; '; mysql_free_result($result); ?&gt;


Do you need to know my php in order to use wordpress?

To create a template or plugin, you will need knowledge of PHP, CSS and HTML. To use WordPress as a blogging platform, you do not need to know PHP. WordPress is a WYSIWYG so you can style the text in the box and create your posts.


How do you insert value to a dropdownlist from textbox input php?

Store the textbox input in a database using a html form prefarably. Using a loop get all the textbox input from database and use print/echo to show them in a dropdown.


What is the use of a question mark in php?

It is used to tell the sever to use the PHP parser. To begin php you must use &lt;?php, and to end it, it is ?&gt;.


How do you use PHP in HTML?

You can't use PHP in an HTML document, but you can use HTML in PHP script.


How do you use a function with a button in PHP?

A simple function call &lt;html&gt; &lt;body&gt; &lt;?php if(isset($_POST['button'])) { setValue(); // Function is called } function setValue() { echo "&lt;br&gt;The button property to call PHP function works"; // Your code here } ?&gt; &lt;input type="submit" name="button" onclick=&lt;?php $_SERVER['PHP_SELF']; ?&gt; /&gt; &lt;/body&gt; &lt;/head&gt;


What is keuboard?

keyboard is actually a most common input device use to give input to the computer in the form of text , graphic and many more....


When you use an IDE instead of a Simple text editor to develop a program?

a generic input device


How do you check a user's text input in C plus plus?

Use an SLR parser algorithm.