• Image 1
  • Image 2
  • Image 3
  • Image 4
  • Image 5
  • Image 6
  • Image 7




Wednesday, July 25, 2012

FORM TEXT IN PHP


Hi.. welcome in my page at “We Are Knowledge”. You can getting many knowledge in here… If you look for IT knowledge about PHP.. This web page is right…

Now, I want giving you IT knowledge about “PHP” and the discuss is “FORM”. Yes FORM in PHP…

You will know… ??? Let’s read it…

FORM in PHP to be found :
  • Text
  • password
  • Submit
  • Reset
  • Check box
  • Check list


And in here I want discuss about form text and form submit.

In Form Submit more often use,, because form submit using for process.
And Define from form text is form which allows we can input word or sentence.

FORM in PHP is .. place for putting your syntax.
You must making 2 (two) file. And the file is “PHP” and “HTML”

Example : file.php and file.html

Example 1 :

you can copy this coding

<html>
<head> We Are Knowledge <br> <br>
<title> FORM IN PHP </title>
</head>
<body>
<form method = "POST" action = "wak.php">
<table border = "2" cellspacing = "1" cellpading = "1" align="center">
<tr>
<td>Input</td><td><input type = text name = "say"></td>
<tr>
<td></td><td><input type = submit name = "say2" value = "SEND">
</tr>
</table>
</body>
</html>


And paste in your notepad…
Save with save as type = “HTML”..
And you must making file.php

You can copy this coding

<?php
echo $_POST[say]
?>

And paste in your notepad…

DON’T forget.. save as type = ”PHP” and you must giving the name = “wak.php”

And result is :

We Are Knowledge 


Top of Form
Input
Bottom of Form



You can input name in form text and if you input "I LOVE PHP" like this

We Are Knowledge 


Top of Form
Input
Bottom of Form

And you press a button “SEND” and result is

I LOVE PHP

To appear in second windows…


Ok.. just for it…
Maybe you any question… please leave your questions in form comment…
Thanks for you.  And Thanks for visitors..
See you later.

No comments:

Post a Comment