View Full Version : upload file
chechu
01-13-2007, 06:49 PM
What's the code of the fields to upload files in a contactform (gifs, docs, jpgs, pngs, html, ...) ? And how does a cookie to reminder language-choices look like ?
yoshi555
01-14-2007, 05:07 PM
the code to upload a file? you mean link
yoshi555
01-14-2007, 05:08 PM
and if you mean download or link the code is <a href="word.doc,html.htm,html,html,png.png,gif.gif,cur.cur,ani.ani">stuff</a>
chechu
01-14-2007, 06:45 PM
No, I meant it as it is written:
What's the code of the fields to upload files in a contactform (gifs, docs, jpgs, pngs, html, ...) ?
thetestingsite
01-14-2007, 06:49 PM
Is this what you mean?
<input type="file" name="fieldname">
chechu
01-14-2007, 06:51 PM
No ! In some contactforms, you can upload images in the message you wish to send. Should look for an example in English.
yoshi555
01-14-2007, 06:55 PM
<input type="file" name="fieldname"> that is the right code to do a browse or upload a pictue so mabe you should try it before you yell at him
mburt
01-14-2007, 07:44 PM
Look at actual FTP upload commands with PHP if that's what you're looking for. The above is correct if you want a user to be able to browse their computer for a file (whos location will be placed in corresponding box). The actual uploading requires a PHP function.
http://ca.php.net/manual/en/ref.ftp.php
thetestingsite
01-14-2007, 07:45 PM
The actual uploading requires a PHP function.
Or any other server side language with uploading capabilities.
EDIT: Sorry Mike, had to throw that in.
chechu
01-14-2007, 08:46 PM
Perfect. Thanks !
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.