n i am beginner ..in php
userform.html
<p><strong></strong></p>
<form method="post" action="insert.php">
<table width="592" border="1" cellspacing=0 cellpadding=4>
<tr>
<td width="37"><strong>name</strong></td>
<td width="503"><input type=text name="name1" size=20 value=""></td>
</tr>
<tr>
<td><strong>content</strong></td>
<td><textarea name="content2" cols="70" rows="5"></textarea></td>
</tr>
<tr>
<td height="31" colspan="2" align="center">
<input type="submit" name="commit" value="Submit">
<input type="reset" name="reset" value="reset">
</td>
</tr>
</table>
</form>
insert.php
<?
// not execute
echo "$POST[NAME1]";
echo "$post[name1]";
echo "$_post[NAME1]";
// excute
echo "$_POST[name1]";
?>
! first
if u use form..
form write order is
<form method="post" action="insert.php">
method is first and action is second :=)
and...
in insert.php
<?
echo "$_POST[name1]";
?>
Important
POST must be Uppercase...
and parameter name1 case is equal in privious name1 case
Upercase is Upercase
lowercase is lowercase
finally....
POST statement is very very case sensitive n parameter
i take debugger for 4 week --+
have a good luck..
:-)
jwan wrote:
Hi,
I get a warning for the undefined variable. My script is like this:
<?php
$ie = $user;
?>
The $user is first time appear here.
Is this could be the configuration problem in php.ini?
jwan
jwan wrote:
Hi,
I get a warning for the undefined variable. My script is like this:
<?php
$ie = $user;
?>
The $user is first time appear here.
Is this could be the configuration problem in php.ini?
jwan