Jump to content

[SOLVED] Working with pictures!


divadiva

Recommended Posts

Experts

 

This piece of code uploads an image.Can someone tell me what this code is doing?

 

 

 

<TR> 
                <TD><% if($i_row['image1'] && ! substr_count($i_row['image1'],'unavailable.')) { %><IMG
                BORDER="0" SRC="<%= '../files/' . $i_row['image1']; %>" ALT=" " WIDTH="300"><% } %></TD>
              </TR> 

<TD> 
               <% $jvb = "'image1','Image 1','" . $image1 . "','jpg'" ; %>
                  <INPUT TYPE="TEXT" NAME="image1" SIZE="40" MAXLENGTH="50"
                   VALUE="<%= $image1 ; %>"> <A HREF="<%= 'javascript:fselect(' . $jvb . ') ;' ; %>">Select</A><%
              if($image1 && ! substr_count($image1,'unavailable.')) { %>
                  | <A HREF="<%= '../files/' . $image1; %>" TARGET="_blank">View</A><% } %>
                  </TD>

 

Regards

Diva

 

 

Link to comment
https://forums.phpfreaks.com/topic/110447-solved-working-with-pictures/
Share on other sites

My aim is to make it this code more readable and give an easy user interface .Currently the scriipt works in IE only(thats strange for me).As you have mentioned it selects pictures but I am unable to find from which location.Is there any good way of doing file uploading?

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.