Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
html form/php question

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
budha



Joined: 02 Mar 2004
Posts: 1377
Location: Osijek

PostPosted: 11.06.2004 20:53    Post subject: html form/php question Add user to your forum ignore list Reply with quote

err.. opet ja sa glupim pitanjima...

unutar forme u HTML-u imam...
Code:

<form action="bla.php" method="post" enctype="multipart/form-data">
<input type="file" name="file1" size="100">
<input type="file" name="file2" size="100">
<input type="submit" value="submit">

... u bla.php mi je $file_name = odabrani file iz file1 inputa.
kako dobiti $file_name od file2 inputa?

_________________
I hate to advocate drugs, alcohol, violence, or insanity to anyone, but they've always worked for me.
Back to top
View user's profile Send private message Visit poster's website
ivan



Joined: 08 Sep 2003
Posts: 320
Location: Zagreb

PostPosted: 11.06.2004 20:59    Post subject: Add user to your forum ignore list Reply with quote

ne kužim, pa isto kao i od prvog

Code:
$file_name=$_FILES['file2']['name'];

_________________
no ojro
Back to top
View user's profile Send private message Visit poster's website
budha



Joined: 02 Mar 2004
Posts: 1377
Location: Osijek

PostPosted: 11.06.2004 21:03    Post subject: Add user to your forum ignore list Reply with quote

Thx!
pa, kod prvog je dovoljno samo $file_name...

Brick wall (nest cesto stavljam ovaj emoticon ) Very Happy

_________________
I hate to advocate drugs, alcohol, violence, or insanity to anyone, but they've always worked for me.
Back to top
View user's profile Send private message Visit poster's website
Phiber



Joined: 18 Apr 2004
Posts: 319
Location: Čakovec, Kroejša

PostPosted: 12.06.2004 10:40    Post subject: Add user to your forum ignore list Reply with quote

ja sam to bio rjesio ovako:

Code:

$path="/tmp";
$upl1=$_FILES['file1']['tmp_name'];
$tmp1="$path/file1";

_________________
- Xatrix Security news portal -- redizajn napravljen, al radim css Smile
- - TIP / Rapid IT : web design & hosting -- za ovog ne, taj je u ladici Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
maxy



Joined: 07 Sep 2003
Posts: 894
Location: Zagreb

PostPosted: 13.06.2004 09:28    Post subject: Add user to your forum ignore list Reply with quote

Phiber wrote:
ja sam to bio rjesio ovako:

Code:

$path="/tmp";
$upl1=$_FILES['file1']['tmp_name'];
$tmp1="$path/file1";


ja mislim da ti nisi procitao pitanje a osim toga, dan je odgovor na pitanje.


inace budha, imas tutorial koji se bavi file uploadima ovdje
Back to top
View user's profile Send private message
Phiber



Joined: 18 Apr 2004
Posts: 319
Location: Čakovec, Kroejša

PostPosted: 13.06.2004 10:19    Post subject: Add user to your forum ignore list Reply with quote

priznajem, bio sam brzoplet.

$name_filea_jedan=$_FILES['file1']['name'];
$name_filea_dva=$_FILES['file2']['name'];

_________________
- Xatrix Security news portal -- redizajn napravljen, al radim css Smile
- - TIP / Rapid IT : web design & hosting -- za ovog ne, taj je u ladici Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
budha



Joined: 02 Mar 2004
Posts: 1377
Location: Osijek

PostPosted: 13.06.2004 15:11    Post subject: Add user to your forum ignore list Reply with quote

maxy wrote:
inace budha, imas tutorial koji se bavi file uploadima ovdje


Thx, aj voz blajnd...

_________________
I hate to advocate drugs, alcohol, violence, or insanity to anyone, but they've always worked for me.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group