I have managed to put together many pieces to complete my current project. I am not a PHP guru, just a guy kludging my way through it.
I know the following:
I am using fopen to open specified lines of text ("r") for reading based on variables from three different text files
I am opening an image for viewing that has a fixed filename for each image . The path to this file is built by variables
I want to:
from a dummy webform which the aforementioned text lines are being displayed in (3 different fields), and a file upload dialog to change the image file, upload the three lines of text to the corresponding files via fopen "w" and not append, rather overwrite any existing line of text. If the user has browsed to a new image file that would be uploaded to the appropriate directory based on $variables. The image file name is based on PHP $variables
I would settle for:
4 different update/upload boxes , three for text files and one for the image upload.
The three text files are
1) link that is HTML encoded with HTML tags and is written into a .htm file
2) Alt text file .txt
3) image caption preferably html, so we can add Bold , or colours on a caption. File is .htm
Any help appreciated.
Help with webform, upload and fopen
Moderator: General Moderators