RE: [PHP] php works in IE not Firefox?

2005-05-14 Thread Simon Allison
By the time a properly executed script(executed on the remote server) gets
to your computer, regardless of the fact it was done in php(or any other
server side language for that matter) it will just be plain html. Once it
makes you computer the file/html will be the same as the same page written
in ASP or even written with just plain html.

Your focus needs to be on the HTML itself and any CSS(what the browser DOES
receive). Looking at the emails it seems both browsers are having issues. 

  -Original Message-
  From: Dustin Wish [mailto:[EMAIL PROTECTED]
  Sent: Friday, May 13, 2005 2:12 PM
  To: php-general@lists.php.net
  Subject: [PHP] php works in IE not Firefox?
 
 
  Anyone run across an issue where a php script works in IE and
  not Firefox?
  Christianboards.org is a PHP nuke site running on a Enism
  linux box that is
  having this issue.
 
 
  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.859 / Virus Database: 585 - Release Date: 2/14/2005
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Repeat Accross, then down

2005-04-22 Thread Simon Allison
Say for a photo album with photo paths taken from a database (or anything
from a database for that matter) how can you use PHP to repeat across for
three photos and then add a new row with the next 3 photos and so on and so
on?



[PHP] Seleting records

2005-03-16 Thread Simon Allison
Hello,

 

My news table has a year field as such

 

Year



2000

2000

2001

2001

2003

2005

2005

 

I was wondering if you could select from this table so you only get one of
each year, so the output would be

 

2000

2001

2003

2005

 

Is this possible, I was trying to think of an algorithm that would work, but
I have had no luck yet?

 

Thanks,

Simon



[PHP] Reading posted form variables

2005-03-15 Thread Simon Allison
Hey,

 

I have a form which allows users to enter a message and then submits to a
confirmation page which displays the submitted message, and it has a form
with a hidden field which uses php to retrieve the message posted from the
initial page and posts that message if the user clicks the submit button
which confirms that it is correct.

 

However included in the message is a link to a file, and while the message
is displayed correctly on the confirmation page, it has trouble putting the
message into the hidden field, (some goes in the field and some is printed
on the webpage. The code I have used to retrieved the message and store it
in the hidden field is:

 

input name=msg type=hidden id=msg value=?php echo $_POST['msg']
? 

 

However, when I ran the script all that as stored in the hidden field was:

 

Please use the link below to download my newsletterbr/a href=\ 

 

And on the confirm page where the hidden field is the page had written:

 

Click here to download and view newsletter  

 

Obviously this has something to do with the quotation marks in the a href
statement, however I am new to php and my attempts using addslashes and
stripslashes have failed. I would be most grateful if anyone could help me. 

 

Cheers,

Simon