When I do this after submitting the form:
<?php $var = $_POST['textarea_name']; ?>
All I get is this:
or even just a blank.
I mean this forum allows me to do the exact thing I want to do. Because these posts are stored in a database and I can put this in my entry:
heavensbest, don't down vote people just for asking a question to try and help you. They have no idea how much PHP you know or don't know and we don't just provide code for people here. Just because you didn't get what you wanted doesn't meant they weren't "helpful", they were trying to help with the very limited information you gave them.
Hit submit and it shows up on the next page when I echo it.
I put this in the textarea:
Hit submit and nothing shows up on the next page when I echo it.
I even viewed the source code and there wasn't anything.
The issue isn't with mySQL or inserting it into the database, the issue is that when there is a script tag (<script></script>) in the textarea, the script tag and everything inside it doesn't seem to go to the next page after hitting submit.
Maybe this isn't a php question, maybe it's a "HTML Form" question.
I know it's possible because when I hit "Post" on this forum, my script tags don't dissappear, even if they aren't in the [ code ] brackets.
This post has been edited by heavensbest: 05 March 2010 - 03:24 PM
Wow, I'm not sure how much clearer skyhawk133 could have explained it with this statement
The only way you're going to get it to show and work right is to follow those instructions.