Home   News  Product reviews  Website reviews  Forums   Competitions  Subscribe 


Web Building >> Web design & build
 |  Print Topic
Jump to first unread post. Pages: 1
effingpot
regular


Reg'd: Sat
Posts: 47
<script type="file" name="photo">
      #382280 - Thu Jan 31 2008 12:06 PM

Hi,
I'm trying to add an "upload your photo here" to the form here:

http://www.rs6000lags.co.uk/getlagged.html

which seems to work from the user end - it allows you to navigate to the file and select it.

Then when you submit it, the form arrives with no file but a (useless) link the to the user's local file on their desktop (C:\desktop\filename sort of thing) all in text

I've scoured the help sites but can't see what I'm missing - any ideas?
ta
Mike


Post Extras: Print Post   Remind Me!   Notify Moderator  
Sam
regular


Reg'd: Tue
Posts: 432
Re: <script type="file" name="photo"> [Re: effingpot]
      #382668 - Sat Feb 02 2008 09:10 PM

Have you tried...

<form method="post" action="../cgi-bin/novice.cgi" enctype="multipart/form-data" onsubmit="return validate();">

?


Post Extras: Print Post   Remind Me!   Notify Moderator  
effingpot
regular


Reg'd: Sat
Posts: 47
Re: <script type="file" name="photo"> [Re: Sam]
      #382737 - Sun Feb 03 2008 11:22 AM

Yes I did try that and got some very odd behaviour - all the other 'inputs' were ignored in the resulting email, the image was included but as embedded characters and the 'success page' defaulted to something I've never seen before.

It seems like I'm close but need to get the image to become an attachment and for the rest of the script to run as before.

Appreciate any further advice.
thanks
Mike


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1

Rate this topic

Jump to


Extra information
1 registered and 3 anonymous users are browsing this forum.

Moderator:  putasolutions, Joe_London, greysts, bricat, Nanook, Hello_There, John_McKenna, Mouse, TheFatControlleR 


Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      Mark-up is enabled

Rating:
Topic views: 0

Contact Us | Privacy statement Main website