 |
|

17-03-2007, 05:19
|
 |
Registered User [4263]
Senior Elite Member
|
|
Join Date: Oct 2004
Location: uk
Age: 44
Posts: 5,242
|
|
|
Websites Again
I've taken on another website project.
For this one, I want people to be able to fill in a form and add a picture. I have the form generating and submitting, but the picture doesn't upload.
I suspect it's because I'm not understanding where/how the picture uploads. Would it upload to the server? Or would it be sent as part of the notification e-mail?
Also, any pointers towards decent classified ad software would be appreciated.
Ta.
__________________
|
| Guest Info |
|
+:+:+ Forum Headquarter +:+:+
Mai Thai Bar
If you look for a hotel - Book hotel here
Register and become a member and you will not see this box.
|

17-03-2007, 16:16
|
 |
Registered User [1109]
Senior Elite Member
|
|
Join Date: Dec 2003
Location: Sydney
Age: 46
Posts: 7,420
|
|
Quote:
Originally Posted by steve@thaib
For this one, I want people to be able to fill in a form and add a picture. I have the form generating and submitting, but the picture doesn't upload.
I suspect it's because I'm not understanding where/how the picture uploads. Would it upload to the server? Or would it be sent as part of the notification e-mail?
|
Show us your code.
|

18-03-2007, 03:57
|
 |
Registered User [4263]
Senior Elite Member
|
|
Join Date: Oct 2004
Location: uk
Age: 44
Posts: 5,242
|
|
|
Which code Steve?
I do think that I'm missing something because the picture would upload to where?
__________________
|

18-03-2007, 17:58
|
 |
Registered User [2776]
Senior Elite Member
|
|
Join Date: Jun 2004
Location: Patong
Age: 35
Posts: 18,831
|
|
|
Well the picture would upload to the webserver.. Would need to, to enable it to display it..
Presume your trying to do this with php ??
__________________
Men have only 2 emotional states, hungry and horny.. So ladies, if you see me without an erection, make me a sandwich.
|

18-03-2007, 21:41
|
 |
Registered User [4263]
Senior Elite Member
|
|
Join Date: Oct 2004
Location: uk
Age: 44
Posts: 5,242
|
|
|
I'm using Formgen, which (I think) handles the php script and uploads it to the server.
I can get the form to browse and attach a file, but the upload fails.
__________________
|

18-03-2007, 22:48
|
 |
Registered User [2776]
Senior Elite Member
|
|
Join Date: Jun 2004
Location: Patong
Age: 35
Posts: 18,831
|
|
|
is there an error ??
__________________
Men have only 2 emotional states, hungry and horny.. So ladies, if you see me without an erection, make me a sandwich.
|

19-03-2007, 02:34
|
 |
Registered User [4263]
Senior Elite Member
|
|
Join Date: Oct 2004
Location: uk
Age: 44
Posts: 5,242
|
|
|
There is an error, but it just says 'the picture failed to upload'
__________________
|

19-03-2007, 04:35
|
 |
Administrator [1]
Senior Elite Member
|
|
Join Date: May 2002
Location: Patong beach, Thailand
Age: 37
Posts: 9,661
|
|
|
The upload form dont do anything, you need an appropriate script on the server side to handle it.
I cant help you as I havent digged into this part myself, but it is not very simple and thats why there are so many commercial scripts out there to handle this for webmasters to buy.
|

19-03-2007, 05:07
|
 |
Registered User [4263]
Senior Elite Member
|
|
Join Date: Oct 2004
Location: uk
Age: 44
Posts: 5,242
|
|
Ah, so attaching pictures to the form is the easy bit? It's a bit frustrating because I really like the neatness of sending a picture with the form:
http://www.marinemartnw.com/formgen/...iz2/form1.html
This is how far I've got with it, but if I can't get it to work I will have to add an e-mail address and have the pictures attached to that.
__________________
|

19-03-2007, 05:24
|
 |
Administrator [1]
Senior Elite Member
|
|
Join Date: May 2002
Location: Patong beach, Thailand
Age: 37
Posts: 9,661
|
|
|
How do you store the data you receive?
I looked at the homepage for phpFormGenerator, it says it can handle the storage as files, sql or email and support uploading files.
So if you have the scripts required for the server side I assume file uploading should work, otherwise they should not say they support uploading. If your option was file storage, then the direcory on server must be world writeable, the webserver cant write files on your account otherwise.
|

19-03-2007, 05:34
|
 |
Registered User [4263]
Senior Elite Member
|
|
Join Date: Oct 2004
Location: uk
Age: 44
Posts: 5,242
|
|
|
All the server side scripts are installed, I think. If it's trying to write to a folder or file what would it be called? I can make files and folders writeable, but I don't know which one ot wants to write to.
__________________
|

19-03-2007, 06:17
|
 |
Registered User [1109]
Senior Elite Member
|
|
Join Date: Dec 2003
Location: Sydney
Age: 46
Posts: 7,420
|
|
Quote:
Originally Posted by steve@thaib
All the server side scripts are installed, I think. If it's trying to write to a folder or file what would it be called? I can make files and folders writeable, but I don't know which one ot wants to write to.
|
You would need to know where your scripts are trying to put the uploaded files. You may have to create a temp directory or something. Time to RTFM.
__________________
Look you tools, no mod cap!!!!
|

19-03-2007, 06:23
|
 |
Registered User [4263]
Senior Elite Member
|
|
Join Date: Oct 2004
Location: uk
Age: 44
Posts: 5,242
|
|
Quote:
Originally Posted by stevem
You would need to know where your scripts are trying to put the uploaded files. You may have to create a temp directory or something. Time to RTFM.
|
It didn't come with a ****ing manual, it's an add-on that's avalailable through the control panel. It's all new territory for me, I generally just upload HTML stuff that Dreamweaver writes for me and leave well alone.
Formgen itself comes with very limited instructions, so I can get it to do most things through trial and error but this is beyond my (limited) experience.
__________________
|

19-03-2007, 06:27
|
 |
Registered User [1109]
Senior Elite Member
|
|
Join Date: Dec 2003
Location: Sydney
Age: 46
Posts: 7,420
|
|
|
From the formgen website, this is step 4 in the setup
Use a FTP program to change the permissions on the /FORMfields/uploads directory to full write permissions. Alternatively, you can set the permissions on this directory using a command like chmod 777.
Give that a try
__________________
Look you tools, no mod cap!!!!
|

19-03-2007, 06:29
|
 |
Administrator [1]
Senior Elite Member
|
|
Join Date: May 2002
Location: Patong beach, Thailand
Age: 37
Posts: 9,661
|
|
|
|

19-03-2007, 06:43
|
 |
Registered User [4263]
Senior Elite Member
|
|
Join Date: Oct 2004
Location: uk
Age: 44
Posts: 5,242
|
|
|
See, I thought that I had changed the directories to be writeable. It's a similar process to getting blogging software to work and I can do it in the cpanel.
Reading the destructions there doesn't help me understand where the pictures want to be uploaded to and if I have to make a new folder for them or do something else to make it work.
It's interesting stuff and it does frustrate me a bit that my technical knowledge is so limited, shouold have gone to skool a bit more often!
__________________
|

19-03-2007, 23:55
|
 |
Honorary Moderators [672]
Senior Elite Member
|
|
Join Date: Sep 2003
Location: Bournemouth England
Age: 8
Posts: 11,563
|
|
|
All interesting stuff to me, and something I'd like to learn.
My daughter wrote and got her website hosted for her IT diploma last year, and it bugs me to know, she knows more about the workings of websites and PCs in general than I do. I will try to find the time, and hopefully be bright enough to understand how they are written, uploaded etc.
Anyone know any good links to help me learn this stuff?
__________________
I want to die peacefully in my sleep like my Granddad
Not screaming in fear like his passengers
|

20-03-2007, 00:32
|
 |
Registered User [4263]
Senior Elite Member
|
|
Join Date: Oct 2004
Location: uk
Age: 44
Posts: 5,242
|
|
Dreamweaver is your friend Dawsey, a big piece of software but it writes the script and does the clever stuff for you. You just need to do the design.
If you start at a place like this:
Free Website Templates, Free Photoshop Web Templates, Website Design
You can get a free template and muck about with it in your own computer.
__________________
|

20-03-2007, 01:15
|
 |
Honorary Moderators [672]
Senior Elite Member
|
|
Join Date: Sep 2003
Location: Bournemouth England
Age: 8
Posts: 11,563
|
|
Quote:
Originally Posted by steve@thaib
|
Cheers Steve. It was Dreamweaver my nipper used, but its an expensive piece of software to buy, unless you get a dodgy ebay copy  I'll save that link and look when I have some time 
__________________
I want to die peacefully in my sleep like my Granddad
Not screaming in fear like his passengers
|

20-03-2007, 04:03
|
 |
Registered User [1109]
Senior Elite Member
|
|
Join Date: Dec 2003
Location: Sydney
Age: 46
Posts: 7,420
|
|
|
If your starting out, forget dreamweaver and anyother authoring tool. Get yourself a copy of html for dummies or something like that and fire up notepad or someother basic text editor. If you jump straight into dreameaver you'll never learn what really goes on.
__________________
Look you tools, no mod cap!!!!
|

20-03-2007, 04:13
|
 |
Honorary Moderators [672]
Senior Elite Member
|
|
Join Date: Sep 2003
Location: Bournemouth England
Age: 8
Posts: 11,563
|
|
Quote:
Originally Posted by stevem
If your starting out, forget dreamweaver and anyother authoring tool. Get yourself a copy of html for dummies or something like that and fire up notepad or someother basic text editor. If you jump straight into dreameaver you'll never learn what really goes on.
|
Aha, I have seen that book. I'd like to learn about this Steve, so I will buy that. Thanks
__________________
I want to die peacefully in my sleep like my Granddad
Not screaming in fear like his passengers
|

20-03-2007, 04:55
|
 |
Administrator [1]
Senior Elite Member
|
|
Join Date: May 2002
Location: Patong beach, Thailand
Age: 37
Posts: 9,661
|
|
|
Dreamweaver is not bad, its a great tool. But to do things exactly the way you want, you should understand HTML and be able to edit the code Dreamweaver creates to suit your needs. Any webmaster should know HTML.
|

20-03-2007, 05:13
|
 |
Registered User [4263]
Senior Elite Member
|
|
Join Date: Oct 2004
Location: uk
Age: 44
Posts: 5,242
|
|
|
I see the same arguments about learning HTML as I did about learning DOS. For me, I don't believe that I have the skills to learn either, so finding something to write the code is great.
__________________
|

20-03-2007, 05:26
|
 |
Administrator [1]
Senior Elite Member
|
|
Join Date: May 2002
Location: Patong beach, Thailand
Age: 37
Posts: 9,661
|
|
The main problem is that the result is not always what you looked for, to fix that you need to know HTML. Dreamweaver often mess things up, not at all what your intention was, the only way to solve this is to edit the HTML code.
This is true for most web designing software, at the end you need to know the basics behind.
Quote:
Originally Posted by steve@thaib
I see the same arguments about learning HTML as I did about learning DOS. For me, I don't believe that I have the skills to learn either, so finding something to write the code is great.
|
|
|