function get_param($p)
{
    if (isset($_POST[$p]) and is_array($_POST[$p])) {
        return $_POST[$p];
    }
    if (isset($_GET[$p]) and is_array($_GET[$p])) {
        return $_GET[$p];
    }
    if (isset($_POST[$p])) {
        return ex_stripslashes(trim($_POST[$p]));
    }
    if (isset($_GET[$p])) {
        return ex_stripslashes(trim($_GET[$p]));
    }
    return '';
}
Exemple #2
0
      <br><br>
      <b>Your contact email:</b> <i>Your <b>contact email address</b> needed <u>only</u> for your <u>receipt</u>.</i><br />
      <input type="text" name="email" value="<?php 
echo ex_stripslashes($email);
?>
" size="30" />
      <br /><br />

      <div class="message_main">

        <div class="message_left">
          <b>Your AD Message - Text/HTML:</b>

          <br>
          <textarea wrap="OFF" rows="14" cols="50" name="message" onFocus="focused=true;" onBlur="focused=false;"><?php 
echo ex_stripslashes($message);
?>
</textarea>
          <br>
          <input type="text" name="countmessage" size="4" readonly>&nbsp;&nbsp;Maximum of <b>750</b> characters.<br><br>
          <input type="hidden" name="submitted" value="send">
          <input type="button" class="beigebutton" value="Submit Your Direct Exposure AD" onClick="checkCount(this.form)">
          </form>
        </div>

        <div class="message_right">
          <font size="+1"><b>AD Preview:</b></font>
          <font size="-2">5 sec refresh</font>
          <script>
            var fwidth=100;
            var fheight=200;