Forum Moderators: coopster
<body>
<div id="wb_Form1" style="position:absolute;background-color:#F0F0F0;left:333px;top:141px;width:504px;height:521px;z-index:49">
<form name="Profile_Update" method="post" action="update.php" enctype="text/plain" id="Form1">
<input type="hidden" name="Id" value="<? echo $ID; ?>">
<input type="text" id="Editbox1" style="position:absolute;left:19px;top:19px;width:155px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:0" name="usermame" value="<? echo $UserName; ?>">
<div id="wb_Text2" style="margin:0;padding:0;position:absolute;left:24px;top:6px;width:108px;height:14px;text-align:left;z-index:1;">
<font style="font-size:11px" color="#000000" face="Arial">Log In Name</font></div>
<input type="text" id="Editbox2" style="position:absolute;left:19px;top:61px;width:134px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:2" name="FirstName" value="<? echo $First; ?>"> session_start();
/**
*This will update the user profile. This is designed to allow
* the user to update their only profile.
*
*update version will update other parts of the table. It will
* be done with an ACTION variable.
*
* @version $Id$
* @copyright 2011
*/
$UserName = $_SESSION['username'];
$database = "d-------s";
include 'includes/DBCont----.php';
mysql_connect($dbserver,$dbusername,$dbpassword);
$query="UPDATE contacts SET FirstName='$First'WHERE username ='$UserName'";
mysql_select_db($database) or die( "Unable to select database");
mysql_query($query);
echo "Record Updated"; <form name="Profile_Update" method="post" action="update.php" enctype="text/plain" id="Form1"> <form action="update.php"> Can anyone tell why this made a difference?
I changed it to this:
<form action="update.php">