title: JQuery Ajax sending over URL string
body: <p>I seem to be having problems with sending over a string of a URL. The URL looks like this:</p>
  
  <blockquote>
    <p><a href="http://www.thewebsitehere.com/mf2/stuff/dirhere.asp?sid=&amp;nm=&amp;type=Publishing&amp;mod=Publions::Article&amp;mid=8F3A7027421F87F791&amp;SiteID=B824D34CAB8727A06DEA3467&amp;tier=4&amp;id=8964A4D50BB59A0AD48594A" rel="nofollow">http://www.thewebsitehere.com/mf2/stuff/dirhere.asp?sid=&amp;nm=&amp;type=Publishing&amp;mod=Publions::Article&amp;mid=8F3A7027421F87F791&amp;SiteID=B824D34CAB8727A06DEA3467&amp;tier=4&amp;id=8964A4D50BB59A0AD48594A</a></p>
  </blockquote>
  
  <p>Its sending all that information inside the JS but it only looks like this once it gets to the php page:</p>
  
  <blockquote>
    <p><a href="http://www.thewebsitehere.com/mf2/stuff/dirhere.asp?sid=" rel="nofollow">http://www.thewebsitehere.com/mf2/stuff/dirhere.asp?sid=</a></p>
  </blockquote>
  
  <p>My Ajax is set up like so:</p>
  
  <pre><code>jQuery.ajax({
      type: "POST",
      dataType: "html",
      data: "type=add" + "&amp;1A=" + pubName + "&amp;1B=" + postID + "&amp;1C=" + PostTitle + "&amp;1D=" + timeStamp + "&amp;1E=" + pdfLink + "&amp;1F=" + imgLink + "&amp;1G=" + fullArticleLink,
      url: "../wp-content/plugins/visual-editor-custom-buttons/js/wpDataSend.php",
      success: function(results) {
          if (results.indexOf("done") &gt;= 0) {
              showNotifier(8000,'#43d32b','Title, Pub Name, Image, Date, PDF &amp; Article link have been saved!');
          } else {
               showNotifier(8000,'#d32b2b','Could not save... Please try again!');
          }
      },
      error: function(XMLHttpRequest, textStatus, errorThrown) {
          console.log("Status: " + textStatus);
          console.log("Error: " + errorThrown);
          showNotifier(8000,'#d32b2b','Error: ' + textStatus + ' | ' + errorThrown);
      }
  });
  </code></pre>
  
  <p>And I am gathering up the data from the PHP page like so:</p>
  
  <pre><code>$newtype     = $_POST['type'];
  $pubName     = $_POST['1A'];
  $postID     = $_POST['1B'];
  $PostTitle     = $_POST['1C'];
  $timeStamp     = $_POST['1D'];
  $pdfLink     = $_POST['1E'];
  $imgLink     = $_POST['1F'];
  $Fullarticle   = $_POST['1G'];
  </code></pre>
  
  <p>How can I correct this?</p>