Code: Select all
1.<input name=going> -------form
2.mysql_query ("insert into $going (description, ---------actionhttp://www.phpbb.com/community/viewtopi ... 6&t=950035
Moderator: General Moderators
Code: Select all
1.<input name=going> -------form
2.mysql_query ("insert into $going (description, ---------actionCode: Select all
if (isset($_POST["submit"]))...Code: Select all
<form....>
<input type="hidden" name="register_submit" value="1">
</form>
if (isset($_POST["register_submit")) {
// perform action
}Code: Select all
<?php
include 'config2.php';
if($_POST[action]=="Submit")
{
mysql_query ("insert into [u]$going [/u](description, imgdata, username, password) values (\"".
$_REQUEST[description].
"\", \"".
$_FILES['imagefile']['name'].
"\", '$_REQUEST[user]', '$_REQUEST[pass]')");
}
?>
<html>
<head>
<title>Swim25.com</title>
</head>
<body>
<?php
if(!$action)
{
?>
<br> <form name="form" enctype="multipart/form-data" action="<?php print $PHP_SELF ?>" method="post">
<table width="100%" border="0" cellspacing="3" cellpadding="5" align="center">
<tr>
Please input images name <input type=file name=imagefile><br>
Please enter the description <input name=description><br>
Please input sql <input name=going><br>
User name <input type="text" name="user" value=""><br>
Password <input type="password" name="pass" value=""><br><br>
</tr>
<tr>
<td align="center" colspan="2"><input type="submit" name="action" value="Submit"></td>
</tr>
</table>
</form>
</body>
</html>