title: How to convert this php code in a wordpress shortcode?
body: <p>Hi I found this code on online, it is a simple button to reveal the coupon code and open the URL at the same time. </p>
  
  <pre><code>function coupon_add($coup, $uurl)
  {
  echo "    
  &lt;script type='text/javascript'&gt;
  &lt;!--
  function coupon(coup,url) 
  {alert('COUPON CODE: ' + coup);
  window.open(url,'_blank');
  }
  //--&gt;
  &lt;/script&gt;";    
  echo "&lt;center&gt;&lt;br /&gt;&lt;input style=\"width:250px; height:60px;font-
  size:30px;\" type=\"button\" onclick=\"coupon('".$coup."','".$uurl."')\" 
  value=\"VIEW COUPON\" \/&gt;&lt;/center&gt;&lt;p&gt;";
  }
  </code></pre>
  
  <p>I would like to turn this into a short code so I can insert it into a post. Would love some help with this, thanks in advance!</p>