
Originally Posted by
MD version 1.0
I've hooked up RTE to add content to my database.
Question is, How do I $_GET the data out so that it can be editted? What do I use? I'm new at this so I'm not sure.
Thanks in advance.
M-
Because it's a lot of data that might be in the post, use the POST method ... then the post will be hidden in a POST variable instead of using the GET method and having everything urlencoded in the address bar
Code:
<form method='post' action=''>
<textarea name='content'><?php echo rteSafe($content_string); ?>here</textarea>
<br>
<input type='submit' name='submit' value='Submit'>
</form>
<?php
if (isset($_POST['submit'])){
//write $content string to database
}
?>
Does this help you? I don't mind helping with this topic as I have been working on these issues for a while.
Mike
Bookmarks