[ Phuket Info | Thailand Hotels | Phuket Diving | Phuket Nightlife | Phuket Classifieds | Phuket Links ]
PHUKET-INFO.COM Forums Mai Thai Bar Phuket

Go Back   PHUKET-INFO.COM Forums > Off Topic Forums > Computer & Internet

Reply
 
Thread Tools Search this Thread
  #1  
Old 17-03-2007, 05:19
steve@thaib's Avatar
steve@thaib steve@thaib is offline
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.
__________________
Reply With Quote
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.

  #2  
Old 17-03-2007, 16:16
stevem's Avatar
stevem stevem is offline
Registered User [1109]
Senior Elite Member
 
Join Date: Dec 2003
Location: Sydney
Age: 46
Posts: 7,420
Quote:
Originally Posted by steve@thaib View Post
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.
Reply With Quote
  #3  
Old 18-03-2007, 03:57
steve@thaib's Avatar
steve@thaib steve@thaib is offline
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?
__________________
Reply With Quote
  #4  
Old 18-03-2007, 17:58
LivinLOS's Avatar
LivinLOS LivinLOS is online now
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.
Reply With Quote
  #5  
Old 18-03-2007, 21:41
steve@thaib's Avatar
steve@thaib steve@thaib is offline
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.
__________________
Reply With Quote
  #6  
Old 18-03-2007, 22:48
LivinLOS's Avatar
LivinLOS LivinLOS is online now
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.
Reply With Quote
  #7  
Old 19-03-2007, 02:34
steve@thaib's Avatar
steve@thaib steve@thaib is offline
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'
__________________
Reply With Quote
  #8  
Old 19-03-2007, 04:35
Nicke's Avatar
Nicke Nicke is offline
Administrator [1]
Senior Elite Member
 
Join Date: May 2002
Location: Patong beach, Thailand
Age: 37
Posts: 9,661
Send a message via ICQ to Nicke
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.
__________________
PhuketThailand PhotosMai Thai Bar
Reply With Quote
  #9  
Old 19-03-2007, 05:07
steve@thaib's Avatar
steve@thaib steve@thaib is offline
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.
__________________
Reply With Quote
  #10  
Old 19-03-2007, 05:24
Nicke's Avatar
Nicke Nicke is offline
Administrator [1]
Senior Elite Member
 
Join Date: May 2002
Location: Patong beach, Thailand
Age: 37
Posts: 9,661
Send a message via ICQ to Nicke
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.
__________________
PhuketThailand PhotosMai Thai Bar
Reply With Quote
  #11  
Old 19-03-2007, 05:34
steve@thaib's Avatar
steve@thaib steve@thaib is offline
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.
__________________
Reply With Quote
  #12  
Old 19-03-2007, 06:17
stevem's Avatar
stevem stevem is offline
Registered User [1109]
Senior Elite Member
 
Join Date: Dec 2003
Location: Sydney
Age: 46
Posts: 7,420
Quote:
Originally Posted by steve@thaib View Post
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!!!!
Reply With Quote
  #13  
Old 19-03-2007, 06:23
steve@thaib's Avatar
steve@thaib steve@thaib is offline
Registered User [4263]
Senior Elite Member
 
Join Date: Oct 2004
Location: uk
Age: 44
Posts: 5,242
Quote:
Originally Posted by stevem View Post
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.
__________________
Reply With Quote
  #14  
Old 19-03-2007, 06:27
stevem's Avatar
stevem stevem is offline
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!!!!
Reply With Quote
  #15  
Old 19-03-2007, 06:29
Nicke's Avatar
Nicke Nicke is offline
Administrator [1]
Senior Elite Member
 
Join Date: May 2002
Location: Patong beach, Thailand
Age: 37
Posts: 9,661
Send a message via ICQ to Nicke
phpFormGenerator Install Guide
__________________
PhuketThailand PhotosMai Thai Bar
Reply With Quote
  #16  
Old 19-03-2007, 06:43
steve@thaib's Avatar
steve@thaib steve@thaib is offline
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!
__________________
Reply With Quote
  #17  
Old 19-03-2007, 23:55
dawsey's Avatar
dawsey dawsey is offline
Honorary Moderators [672]
Senior Elite Member
 
Join Date: Sep 2003
Location: Bournemouth England
Age: 8
Posts: 11,563
Send a message via MSN to dawsey
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
Reply With Quote
  #18  
Old 20-03-2007, 00:32
steve@thaib's Avatar
steve@thaib steve@thaib is offline
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.
__________________
Reply With Quote
  #19  
Old 20-03-2007, 01:15
dawsey's Avatar
dawsey dawsey is offline
Honorary Moderators [672]
Senior Elite Member
 
Join Date: Sep 2003
Location: Bournemouth England
Age: 8
Posts: 11,563
Send a message via MSN to dawsey
Quote:
Originally Posted by steve@thaib View Post
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.

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
Reply With Quote
  #20  
Old 20-03-2007, 04:03
stevem's Avatar
stevem stevem is offline
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!!!!
Reply With Quote
  #21  
Old 20-03-2007, 04:13
dawsey's Avatar
dawsey dawsey is offline
Honorary Moderators [672]
Senior Elite Member
 
Join Date: Sep 2003
Location: Bournemouth England
Age: 8
Posts: 11,563
Send a message via MSN to dawsey
Quote:
Originally Posted by stevem View Post
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
Reply With Quote
  #22  
Old 20-03-2007, 04:55
Nicke's Avatar
Nicke Nicke is offline
Administrator [1]
Senior Elite Member
 
Join Date: May 2002
Location: Patong beach, Thailand
Age: 37
Posts: 9,661
Send a message via ICQ to Nicke
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.
__________________
PhuketThailand PhotosMai Thai Bar
Reply With Quote
  #23  
Old 20-03-2007, 05:13
steve@thaib's Avatar
steve@thaib steve@thaib is offline
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.
__________________
Reply With Quote
  #24  
Old 20-03-2007, 05:26
Nicke's Avatar
Nicke Nicke is offline
Administrator [1]
Senior Elite Member
 
Join Date: May 2002
Location: Patong beach, Thailand
Age: 37
Posts: 9,661
Send a message via ICQ to Nicke
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 View Post
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.
__________________
PhuketThailand PhotosMai Thai Bar
Reply With Quote