answersLogoWhite

0

You should use php form for it.

-EDIT From the above numpty-

<?

$button = $_POST['button'];

$textfield = $_POST['textfield'];

if($button && $textfield){

echo $textfield; // This will output "Hello" as the initial value of the textfield was "Hello"

}

?>

<html>

<body>

<form name="form1" method="post" action="">

<input name="textfield" type="text" id="textfield" value="Hello">

<input type="submit" name="button" id="button" value="Submit">

</form>

</body>

</html>

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How can you make a PHP form in HTML and submit without using a php file or email?

To submit a file, you don't even need a PHP file. The PHP portion is for processing the form results. You just make a button and make sure you defined the action URL.Name: Gender:Boy: Girl:


Why your IF Statement not working?

&lt;?php $a = $_POST['name2']; if($a=='Hello'){ echo "VALUE IS HELLO";} else{ echo "VALUE WRONG";} ?&gt; &lt;form name="" method="POST"&gt; &lt;input type="text" name="name2" value="Hello"&gt; &lt;/form&gt; &lt;?php ?&gt;


How do you go from HTML form to php?

Build your form in HTML and specify your PHP file in the action of the document. HTML does the form stuff, PHP the processing (although you can - of course - use HTML inside PHP via print() or echo(), too)


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 get the current working directory in PHP?

$curr_dir = getcwd();


What is the form of PHP?

PHP: Hypertext Preprocessor is the full name of PHP. It originally stood for Personal Home Page. This was changed in 1997 with the release of PHP 3.


What is the full form of PHP?

PHP: Hypertext Preprocessor is the full name of PHP. It originally stood for Personal Home Page. This was changed in 1997 with the release of PHP 3.


How do you preview PHP source output?

The only true form of previewing PHP source output is to run the PHP script in question.


What is full form of ob?

php


Full form of PHP?

In early versions, PHP used to stand for Personal Home Page. It was renamed to 'PHP: Hypertext Preprocessor'. The expanded form conatins the acronym itself, therefore it is a recursive acronym.


Companies working in PHP?

May be who will answer this question are working on PHP. And also if you will search online job sites, you will get lots of companies, Nonetheless you may get companies by searching google search engine too.


How do you add HTML5 Geolocation results to a PHP form?

There is no such thing as a PHP form. Forms are written in HTML or other client side scripting languages.