hmm, ok here is the code i am using for a members url submission page, how can i change it to work for the above posts.
<form>
<tr><td class="ROW">Email </td><td class="ROW"> <input name="email" size=10><?php
if(!$email)
{
echo "You must enter an email address";
}?></td></tr>
<tr><td class="ROW">Sites URL </td><td class="ROW"> <input name="url" size=10><?php
if(!$url)
{
echo "Please DO NOT Include http://";
}?></td></tr>
<tr><td colspan=2 class="FOOT"><INPUT TYPE='hidden' NAME='level' size=10 value='1'><input type=hidden name="submit" value=" Set ">
<input type=submit Value=Submit>
</td></b></tr>
</form>
</table>
<?php
} else {
$urllist = file("url.inc.php");
$done = false;
$auth = false;
$found = false;
$i = 0;
while ((!$found) && ($i<count($urllist))) {
$i++;
list($n,$u,$e) = explode(':',$urllist[$i]);
$found = ($n==$user);
}
if ($found) {
echo "<b>Error: The URL has allready been submitted<br><br></b>";
echo "<a class=towhite href=\"javascript: history.back();\">Back</a>";
}
elseif(!$email)
{
echo "<b>Error: You Must Supply an email address - please try again<br><br></b>";
echo "<a class=towhite href=\"javascript: history.back();\">Back</a>";
}
elseif(!$url)
{
echo "<b>Error: You Must Supply a URL - please try again<br><br></b>";
echo "<a class=towhite href=\"javascript: history.back();\">Back</a>";
}
else {
$n = $user;
$u = $url;
$e = $email;
$i = count($urllist);
$urllist[$i] = implode(':',array($n,$u,$e));
sort($urllist);
$fd = fopen("url.inc.php","w");
fputs($fd,"<?php die(\"Access restricted\"); ?>\n");
for ($i=1; $i<count($urllist); $i++) {
fputs($fd,chop($urllist[$i])."\n");
}
fclose($fd);
echo "<b>Your URL Will Be Looked at shortly";}}?>
</b><br>
I would need the password to decrypt then encrypt itself into the users info.