Private Message Sytem delete_conversation=UID was not found
Posted: Fri Mar 16, 2012 8:10 am
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
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>