/    Sign up×
Community /Pin to ProfileBookmark

Ok, I am making a script for a type of complaint entry. Heres my current code:

[CODE]
<style type=”text/css”>
<!–
body,td,th {
color: #FFFFFF;
}
body {
background-color: #888888;
}
a:link {
color: #FFFFFF;
}
a:visited {
color: #FFFFFF;
}
a:hover {
color: #FFFFFF;
}
a:active {
color: #FFFFFF;
}
–>
</style>
<form action=”sources/grboard/action.php” method=”POST”>
<table width=”100%”>
<tr>
<td align=”right” bgcolor=”#000000″>Username:</td>
<td bgcolor=”#000000″><a href= “http://www.ladderhall.com/forum/index.php?showuser=<?php echo “{$ibforums->member[‘id’]}”?>”><?php echo “{$ibforums->member[‘name’]}”; ?></a></td>
</tr>
<tr>
<td align=”right” bgcolor=”#000000″>Email Address: </td>
<td bgcolor=”#000000″><input type=’text’ size=’40’ maxlength=’250′ name=’email’ value=” class=’textinput’ /></td>
</tr>
<tr>
<td align=”right” bgcolor=”#000000″>Complaint Filed Against: </td>
<td bgcolor=”#000000″><input type=’text’ size=’40’ maxlength=’250′ name=’filed’ value=” class=’textinput’ /></td>
</tr>
<tr>
<td align=”right” bgcolor=”#000000″>Complaint:</td>
<td bgcolor=”#000000″><textarea cols=’60’ rows=’12’ name=’complaint’ class=’textinput’></textarea></td>
</tr>
<tr>
<td align=”right” bgcolor=”#000000″>URL to Proof:</td>
<td bgcolor=”#000000″><input type=’text’ size=’40’ maxlength=’250′ name=’proof’ value=” class=’textinput’ /></td>
</tr>
</table>
<div align=”center”>
<input type=”submit” />
</div>
</form>
[/CODE]

The user goes to the page and has his/her username printed, and linked to their profile. Then they enter in the email, who the complaint is against, the complaint itself, and a url to any proof if they have any. Then they submit the information and it goes to a file called action.php. What I’m trying to do with that file is make it insert the username that was printed into the username field in the mysql table. Then the email to the email field in the mysql table, etc. The problem I’m having is getting it to insert that data, expecially the username which I have no idea how to have inserted. Would anyone happen to know how to get this to work?

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @GrimShadow spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.7,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...