echo "<a 
href='http://www.joshuaneil.com/hir/scripts/results/".$fdf_file.";'>click here 
to download Non_Disclosure Agreement</a>"; right


echo '<a 
href="http://www.joshuaneil.com/hir/scripts/results/'.$fdf_file,'>click here to 
download Non_Disclosure Agreement</a>'; wrong



  ----- Original Message ----- 
  From: [EMAIL PROTECTED] 
  To: [email protected] 
  Sent: Wednesday, October 15, 2008 9:13 PM
  Subject: [php_mysql] Simple PHP Syntex Question


  Hello,

  I am having a problem with my PHP script. This is surely a simple syntax
  error and I have gone almost crossed eyed trying several things to get it
  to work. The problem is with the following line of PHP:

  ----------------------------------------------------------

  echo '<a
  href="http://www.joshuaneil.com/hir/scripts/results/'.$fdf_file,'>click
  here to download Non_Disclosure Agreement</a>';

  ----------------------------------------------------------

  The problem is that it is not generating the hyperlink for users to click
  on in Internet Explorer. The code is working fine in Mozilla Firefox but I
  need to get it to work in Internet Explorer.

  Below is the entire script from which the line of code from above is
  located. The line of code from above is not too far from the bottom of the
  following script. Please check it out and let me know if you have any
  suggestions.

  ----------------------------------------------------------

  <?php
  // check that a form was submitted
  if(isset($_POST) && is_array($_POST) && count($_POST)){
  // we will use this array to pass to the createFDF function
  $data=array();

  // This displays all the data that was submitted. You can
  // remove this without effecting how the FDF data is generated.
  echo'<pre>POST '; print_r($_POST);echo '</pre>';

  if(isset($_POST['TEXT1'])){
  // the name field was submitted
  $pat='`[^a-z0-9\s]+$`i';
  if(empty($_POST['TEXT1']) || preg_match($pat,$_POST['TEXT1'])){
  // no value was submitted or something other than a
  // number, letter or space was included
  die('Invalid input for TEXT1 field.');
  }else{
  // if this passed our tests, this is safe
  $data['TEXT1']=$_POST['TEXT1'];
  }

  if(!isset($_POST['TEXT2'])){
  // Why this?%2



   

  __________ NOD32 3523 (20081015) Information __________

  This message was checked by NOD32 antivirus system.
  http://www.eset.com


[Non-text portions of this message have been removed]

Reply via email to