Hi Charlie

I don't think your scribe is working fine, 
echo "<a
href=\"http://www.joshuane il.com/hir/ scripts/results/".$fdf_file .
"\"">click
here to download Non_Disclosure Agreement</a> "";
 
try to run, hope you'll get an error like
 
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in 
C:\wamp\www\phperrors.php on line xx

Instead of that I think you must go with these 
 
<?php
$fdf_file = "index.php";
echo "<a href=\"http://www.joshuaneil.com/hir/scripts/results/\"".$fdf_file 
.">click here to download Non_Disclosure Agreement</a>";
 
echo "<br /> Or<br />"; 
 
echo "<a href='http://www.joshuaneil.com/hir/scripts/results'".$fdf_file, 
">click here to download Non_Disclosure Agreement</a>";
?>
 
 
Cheers...
Dinesh R Vyas
System Analyst, India


----- Original Message ----
From: Charlie Markwick <[EMAIL PROTECTED]>
To: php_mysql@yahoogroups.com
Sent: Thursday, 16 October, 2008 13:21:08
Subject: RE: [php_mysql] Simple PHP Syntex Question


Try 

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

Note:

Firstly variables won't be expanded if you use singe quotes see:-

http://uk.php. net/types. string

\ escapes the " so it is treated the character rather then the closing
of the quites

Secondly you aren't closing the href value with a double quote

Charlie

-----Original Message-----
From: [EMAIL PROTECTED] ps.com [mailto:[EMAIL PROTECTED] ps.com] On
Behalf Of [EMAIL PROTECTED] com
Sent: 15 October 2008 19:13
To: [EMAIL PROTECTED] ps.com
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.joshuane il.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

 

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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

Reply via email to