Private Message Sytem delete_conversation=UID was not found

Post here is you are having problems with any of the tutorials.
Post Reply
Insight223
Posts: 5
Joined: Tue Mar 13, 2012 5:31 am

Private Message Sytem delete_conversation=UID was not found

Post 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>
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Private Message Sytem delete_conversation=UID was not fo

Post by jacek »

You need a ? after the inbox.php in your href="" part.
Image
Insight223
Posts: 5
Joined: Tue Mar 13, 2012 5:31 am

Re: Private Message Sytem delete_conversation=UID was not fo

Post 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 =\
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Private Message Sytem delete_conversation=UID was not fo

Post 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 :)
Image
Post Reply