not sure what i'm doing wrong here but when the page is loaded, it ads an auto incremented id.
then once the form is filled out it does ti's job correctly.... but why is it doing this? any ideas?
$query = "INSERT INTO users (username,
Year,
Color,
Custom_color,
Model,
Engine,
FI,
Wheels,
Tires,
Hood,
Fenders,
Body_kit,
Front_bumper,
Grill_insert,
Sides,
Rear_bumper,
exteriormods,
interiormods,
suspensionmods,
performancemods,
audiomods,
gallery'
exteriorneons,
interiorneons) ";
$query .= "VALUES('$username',
'$Year',
'$Color',
'$Custom_color',
'$Model',
'$Engine',
'$FI',
'$Wheels',
'$Tires',
'$Hood',
'$Fenders',
'$Body_kit',
'$Front_bumper',
'$Grill_insert',
'$Sides',
'$Rear_bumper',
'$exteriormods',
'$interiormods',
'$suspensionmods',
'$performancemods',
'$audiomods',
'$gallery',
'$exteriorneons',
'$interiorneons')";
mysql_query($query);
after this i have a
<?
if ($submit) {
//a table that says your profile has been entered into the database.
}
else
{
?>
<!--my form is here-->
<?
}
?>
thanks all again 🙂
almost got this script down and once I do it's gonna be amazing.
also... i am having one issue with <a href=""> inside of a form value=""
it works but my problem is that the first field in teh form is username, which I am then using as a $username so it looks like this
<input type="text" name="username">
<!--rest of form goes here-->
<input type="hidden" name="gallery" value="<a href=http://../../<? echo "$username"; ?>/><? echo "$username"; ?>'s Gallery</a>
i have tried without out the ; after echo too, no luck.
i have tried href=" and it thros me an error whenever i do it that way... any ideas?😃
thanks 🆒