I am attempting to use a Javascript popup window  to open a new php form
window that uses a php script to process the form data.  All processing for
the form is completed in the popup window.

The issue I am encoutering is occurring with Netscape only -- I receive the
following msg:

Warning there is a possible security hazard here opening <name of my script>

The called script is used in this statement on the initial form that appears
in the popup window:

   <form method=POST action="http://www.contus.com/test/miniquote.scp.php3">

The error occurs when the email field is blank or if I enter an incorrect
email address such as cc.

The code to check the email field in my script is as follows:

<?php

   INCLUDE "global.inc";

   if (isset($miniquote_submit))
 {
 if ( ( ($sender_name != "") &&  ($Contact != "Contact_by_Phone") && ($email
!= "") ) ||
  ( ($sender_name != "") && ($Contact == "Contact_by_Phone") && ($Phone !=
"") )   )
 {

       $msg = "Trip Request Name: $headline\n";
    $msg .= "Travel Site: $travel_site\n\n";
    $msg .= "Full Name:  $sender_name\n";
    $msg .="Contact via:  $Contact\n";
    $msg .= "E_mail:  $email\n";
    $msg .= "E_mail confirmation:  $email2\n";
    $msg .= "Include on Email List?  $Email_list\n";
    $msg .= "Phone:  $Phone\n";
    $msg .= "Best Time to Call:  $time_to_call\n";
    $msg .= "Departure Date:  $departure_date\n";
    $msg .= "Desired length of trip:  $trip_length\n";
    $msg .= "Comments Questions:  $comments_questions\n\n";


The referring form code is:

<font face="Arial, Helvetica, sans-serif" size="2">Name:
                        <input type="text" name="sender_name" size="15"
maxlength="35">
                        </font>
      <font face="Arial, Helvetica, sans-serif" size="2">
                        <br>
                        Please contact me via:
                        <input type="radio" name="Contact" value="Contact by
E-Mail"
       checked>
                        E-Mail
                        <input type="radio" name="Contact"
value="Contact_by_Phone">
                        Phone </font>
      <br>
      <font face="Arial, Helvetica, sans-serif" size="2">
                        E-mail Address:
                        <input type="text" name="email" size="15"
maxlength="40">
                        </font>
      <br>
      <font face="Arial, Helvetica, sans-serif" size="2">
                         Please confirm your E-mail Address:
                        <input type="text" name="email2" size="15"
maxlength="35">
                        </font>
       <br>
       <font face="Arial, Helvetica, sans-serif" size="2">
                        Click here if you do NOT wish to be on our e-mail
list:
                        <input type="checkbox" name="Email_list" value="No">
      </font>
                        <br>
      <font face="Arial, Helvetica, sans-serif" size="2">
                        Phone (with area code):
                        <input type="text" name="Phone" size="10"
maxlength="20">
                        </font>

Any help would be appreciated.  Again this works OK in IE...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to