Page 1 of 1

Private Message Sytem delete_conversation=UID was not found

Posted: Fri Mar 16, 2012 8:10 am
by Insight223
Alright So I have my website, but I didn't do it like the first 5 tutorials to make dynamic pages, I have my own pages instead all files and what not, and used the login tutorial and integrated it perfectly into it, but now when I try to delete the message from the system it gives me the Not Found 404 page, was wondering how I would hook this in correctly to make it not return a 404 page. All the functions work its just the url that is giving me problems.


My Inbox.php
<?php
 	include('core/init.inc.php');

 	$errors[] = array();

 	if(isset($_GET['delete_conversation']))
 	{
 		if(valididate_conversation_id($_GET['id']) == false){
 			$errors[] = 'Invalid conversation ID.';
 		}
 		if(empty($errors)){
 			delete_conversation($_GET['delete_conversation']);
 		}
 	}
	$conversations = fetch_conversation_summary();

?>
<head>
<style type="text/css">
			.unread
			{
				font-size: 80%;
				font-family: "Courier New", Courier, monospace;
				letter-spacing: 0.15em;	
				background-color: #efefef;
			}
		</style>
</head>
<a href="new_conversation.php">New Conversation</a>
<div>
	<?php
		foreach ($conversations as $conversation){
			?>
				<div class=" <?php if($conversation['unread_messages']) echo 'unread'; ?>">
					<h2>
						<a href="inbox.php&delete_conversation=<?php echo $conversation['id']; ?>">[x]</a>
						<a href=""><?php echo $conversation['subject']; ?></a>
					</h2>
					<p>Last Reply: <?php echo date('d/m/Y H:i:s', $conversation['last_reply']); ?></p>
				</div>
			<?php
		}
	?>
</div>

Re: Private Message Sytem delete_conversation=UID was not fo

Posted: Fri Mar 16, 2012 9:58 pm
by jacek
You need a ? after the inbox.php in your href="" part.

Re: Private Message Sytem delete_conversation=UID was not fo

Posted: Fri Mar 16, 2012 10:28 pm
by Insight223
Dang it, that was it, sorry about that, if I have any more question ill link em here. No way I should of missed that last one =\

Re: Private Message Sytem delete_conversation=UID was not fo

Posted: Sun Mar 18, 2012 10:16 pm
by jacek
Insight223 wrote:Dang it, that was it, sorry about that, if I have any more question ill link em here. No way I should of missed that last one =\
No problem. Sometimes it just takes a second pair of eyes :)