title: how to post xml with curl with php GET variables?
body: <p>the script will post xml content to a url, and i need to include the  php GET variables (eg. $RegionId), pls advise how to. </p>
  
  <pre><code> $RegionId = $_GET["RegionId"];
  
  // xml data 
  
  
  $xml_data ='&lt;AvailabilitySearch&gt;
    &lt;RegionId xmlns="http://www.reservwire.com/namespace/WebServices/Xml"&gt;$RegionId&lt;/RegionId&gt;
    &lt;HotelId xmlns="http://www.reservwire.com/namespace/WebServices/Xml"&gt;0&lt;/HotelId&gt;
    &lt;HotelStayDetails xmlns="http://www.reservwire.com/namespace/WebServices/Xml"&gt;
  &lt;/AvailabilitySearch&gt; 
  ';
  
  // assigning url and posting with curl 
  
  $URL = "http://roomsxmldemo.com/RXLStagingServices/ASMX/XmlService.asmx";
  
  $ch = curl_init($URL);
  
  ............
  ............
  ............
  </code></pre>
  
  <p>$RegionId is not posted on the script, how to use the GET or POST variable on that xml content?</p>