Search results

  1. S

    Can anyone correct this PHP?

    This code lets the user upload a jpeg to a directory called "gallery_001_images". Works fine except I want it to change the name of the jpeg (whatever it's original file name is) to "1.jpg" and replace "1.jpg" if there's already one there. I've been trying all day to make this work to no avail...
  2. S

    Make PHP recognize line returns?

    I'm trying to build a PHP/CMS thingy and it's all going great. But I just can't figure out how to make the simple line returns the user types into the text field show up once the text has been saved and included in the actual page. Is this something that I do on the "PHP Include" end or on the...
  3. S

    How can I make this PHP work?

    OK, I have a page with a text field. You type into the text field. It saves as a txt file. Then another page includes the txt file as content. It works great apart from it ignores line returns typed in by the user. I find code VERY hard to follow so it would be great if someone could just tell...
  4. S

    PHP to text file - two forms on one page?

    This is embarrassingly easy (probably) but... I've set up a PHP page with a text area that saves to a txt file. The text file is then included on a live page. Then I have another PHP page with a text area that saves to another txt file for inclusion on the same live page. All works fine, but how...
Back
Top