Jump to content

ive tried .. but failed.. how do i...??


techiefreak05

Recommended Posts

make a form on your page that shows the message, with the stuff you want to send to the reply screen, like, original message, user, etc.. as hidden inputs. then make a submit button called 'reply' or whatever, and the form action whisks you away to some other replay page, and you have your info in the $_POST array just like any other form.  On your new page, just auto-fill your reply fields like the 'to:' input field with the $_POST values. If you made your own pm system then you should know how to do all of this already...
Well, I want to have something like this: ex.

.../sendMessage.php?id=6

where the form will be filled out with the message, subject, to,etc. with the id 6.
cuz all my messages have an ID so.. if i go to ?id=6, the message that has the id of 6 would be in the message box
i was thinknig of that ... well could i do some sort of mysql query? like

SELECT * FROM messages where id = $id AND to = '$_SESSION[username]'

thats how i make sure that only the user that was supposed to get the message.. gets the message

idk ...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.