title: php variable is declared, but will not insert into database
body: <p>In one of my scripts, the php $_POST is declaring properly into a variable. When I echo the variable, it displays correctly, however, when I check the database it does not insert correctly. It appears blank. So my guess is that it isn't a problem with the variable, because it is being called back properly. I do not know what the problem is when it inserts. </p>
  
  <p>If needed this is a twilio app, so the application is pulling the recording url from the twilio app, and I am passing a value from the form in which you record. I am just stating this for those who are familiar with twilio Apps. </p>
  
  <pre><code>$sayid = $_SESSION['id'];
  $hearid = "01";
  $sayurl = $_REQUEST['RecordingUrl'];
  $topic = $_POST['topic'];
  
  
  
  mysql_query("INSERT INTO says (say, hear, sid, time_sent, happy) 
          VALUES('$sayid', '$hearid', '$sayurl.mp3', now(), '$topic' )"); 
  
  
  echo $topic;
  </code></pre>
  
  <p>I am open to suggestions, I will try them, and tell you if they work or now.</p>
  
  <p>EDIT  if I change the vaiable $topic to = "whatever" it will post "whatever" to the database properly, but once I change it to $_POST['topic'] it begins to post a blank value again. But If I echo $topic anywhere it will post the correct $_POST value</p>
  
  <p>EDIT #2 okay new update, so I changed the variable declaring to $sayid = "20"; $hearid = "01"; $topic = $_POST['topic']; $sayurl = $_REQUEST['RecordingUrl']; instead of $sayid = "20"; $hearid = "01"; $sayurl = $_REQUEST['RecordingUrl']; $topic = $_POST['topic']; and I am now getting an output of the php script CREATING 2 NEW RECORDS, one of them has everything on it except for the $topic, and the other has just the $topic, so they are apparently posting all fields, but in two different rows! lol wow what the hell is going on</p>