RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AJAX upload progress bar

File sharing script

File mirror script

Newsletter script
upload button

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro
View previous topic :: View next topic  
Author Message
ObiVan



Joined: 08 May 2011
Posts: 24

PostPosted: May 22, 2011 12:37 pm    Post subject: upload button Reply with quote

hello,

is there someone who replaced the orginal "upload" submit form button with the one which uses the .gif image ??

the orginal upload submit button have the following code:

<input type="submit" name="submit_btn" value=" <TMPL_VAR lang_upload_btn> " class="btn">

and I created upload button .gif format and I replaced the code with a following:

<input type="image" src="upload.gif" height="30" width="173" border="0" ALT="Submit Form" name="submit_btn" value=" <TMPL_VAR lang_upload_btn> " class="btn">

But I was not able to see the image upload button via mozilla, msie etc...
any idea why ?? because I am 100% sure that code is written as it should ....

Thank You
Cheers
Back to top
View user's profile Send private message
RockDiz



Joined: 05 May 2011
Posts: 59

PostPosted: May 23, 2011 12:30 am    Post subject: Reply with quote

is the image on the root of your sever or in a folder for example: /images/upload.gif
Back to top
View user's profile Send private message Visit poster's website
ObiVan



Joined: 08 May 2011
Posts: 24

PostPosted: May 23, 2011 5:43 am    Post subject: Reply with quote

in my case as this code shows the image was located in the same folder as the file.... so therefore I used just the image name ...

And I have also tried to copy the image on to images folder as You mentioned and changed the code as follows:

<input type="image" src="images/upload.gif" height="30" width="173" border="0" ALT="Submit Form" name="submit_btn" value=" <TMPL_VAR lang_upload_btn> " class="btn">

and

<input type="image" src="/images/upload.gif" height="30" width="173" border="0" ALT="Submit Form" name="submit_btn" value=" <TMPL_VAR lang_upload_btn> " class="btn">

but the same problem...
Back to top
View user's profile Send private message
RockDiz



Joined: 05 May 2011
Posts: 59

PostPosted: May 23, 2011 9:06 am    Post subject: Reply with quote

you're partially correct but I believe that your "images" folder is not in the same folder as your "upload_form.html" am i correct?
You have to link directly to the file, my code looks like this:

<input height="98" style="width:179px;" type="image" src="http://rockdizfile.com/images/upload.png" name="submit_btn" value=" <TMPL_VAR lang_upload_btn> " class="btn">
Back to top
View user's profile Send private message Visit poster's website
ObiVan



Joined: 08 May 2011
Posts: 24

PostPosted: May 23, 2011 9:25 am    Post subject: Reply with quote

that`s correct the "images" folder is not on the same location as the "upload_form.html" ... the "images" folder is located under the public_html fold in my case while this upload file is located in the cgi-bin folder....

BUT, I understand what you mean, and I am thinking the same way, BUT again how the "main.html" file CAN locate the folder "images" which is NOT in the same location as the main.html file... ?? for I am talking about LOGO images located in the main.html file, if You look at the main.html file You will notice that logo is linked as follows: images/logo.gif... or /images/logo.gif...

How can this work than ?? I added the upload button in the SAME folder "images" and linked on the SAME way as the LOGO is linked...

I am a bit confused in this case...

I also understand now why Your upload image button is displayed, You linked it on the "outside" way .... perhaps I should do the same ...

But still I don`t understand how the main.html file can find the logo image located in the folder "images" and the upload_form.html cannot find the upload image also located in the "images" folder...

Thank You for answer pal !!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro All times are GMT
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