Upload via url

Started on the old forum in September 2009 · view the original in the archive · old links redirect here

5 replies · 371 views · started 17 years ago · 1 min read

4 participants
riderz Lead · 975 posts #1

im having prob with the code it get uploaded to the sql but dnt display on the list

//////////////////////////////////////////add vault

else if($action=="addvlt2")
{

$pstyle = theme($sid);
      echo "<head>\n";
          echo "<title>$sitetitle</title>\n";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"themes/$theme[0]\">";
                    echo "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />\n";
      echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\" />\n";
      echo "<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n";
          echo "</head>";
if(!getplusses(getuid_sid($sid))>25)
    {
        echo "<card id=\"main\" title=\"$stitle\">";
      echo "<p align=\"center\">";
      echo "At least you should have 25 plusses to add an item to your vault<br/><br/>";
      echo "<a href=\"index.php?action=main&sid=$sid&type=send\">Main Menu</a>";
      echo "</p>";
      echo "</card>";
      echo "</wml>";
      exit();
    }
    addonline(getuid_sid($sid),"v2:Adding Vault Item","index.php?action=$action");
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"60\" width=\"159\">";
echo "<tr>";
echo "<td id=\"body\" width=\"159\">";
echo "</td>";
echo "</tr>";
echo "</table>";

 echo "<table border=\"0\" width=\"99%\" cellspacing=\"0\" cellpadding=\"0\" class=\"boxed\" align=\"center\">";
echo "<tr>";
echo "<td class=\"boxedTitle\" height=\"20\">";
echo "<h1 align=\"center\" class=\"boxedTitleText\">Add Vault</h1></td>";
echo "</tr>";
echo "<tr>";
echo "<td class=\"boxedContent\">";
    echo "<p align=\"left\">Earn more plusses by adding more files :)<br/><a href=\"uploader.php?sid=$sid&ver=html\">Upload files from your Phone</a><br/>";
    echo "<form action=\"genproc.php?action=addvlt2&sid=$sid\" method=\"post\">";
    echo "Item Name: <input name=\"viname\" maxlength=\"50\"/><br/>";
    echo "Item URL: <input name=\"vilink\" maxlength=\"255\" value=\"http://\"/><br/>";
   echo "Description: <input name=\"videsc\" maxlength=\"50\"/><br/>";

echo "<select name=\"file\">";
   echo "<option value=\"1\">Symbian Software</option>";
  echo "<option value=\"2\">Java Software</option>";
  echo "<option value=\"3\">Anti Virus</option>";
  echo "<option value=\"4\">s40v2/s40v3-Themes</option>";
  echo "<option value=\"5\">s60/s60v3/Nseries/-Themes </option>";
  echo "<option value=\"6\">Sony Ericsson-Themes </option>";
  echo "<option value=\"7\">s30/40/s40v2-Games </option>";
  echo "<option value=\"8\">s60/s60v3 Games </option>";
  echo "<option value=\"9\">Nseries/Eseries/Ngage-Games </option>";
  echo "<option value=\"10\">Sony Ericsson-Games</option>";
 echo "<option value=\"11\">Full MP3</option>";
  echo "<option value=\"12\">3GP Videos</option>";
  echo "<option value=\"13\">Scandal</option>";
echo "<option value=\"14\">Gameboy Games</option>";
  echo "<option value=\"15\">Naruto-Themes/Poly/MP3</option>";
  echo "<option value=\"16\">MP3/MIDI/WAV/POLY/AMR/RAR</option>";
     echo "<option value=\"17\">Opera Software</option>";
    echo "<option value=\"18\">Images</option>";
  echo "</select><br/>";
    echo "<input type=\"submit\" value=\"Upload\"/>";
echo "</form>";
echo "</td>";
echo "</tr>";

echo "</table>";
  echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
  echo "Home</a>";
  echo "</p>";
    echo xhtmlfoot();
        exit();
}

i think the prob are in here

echo "<select name=\"file\">";
   echo "<option value=\"1\">Symbian Software</option>";
  echo "<option value=\"2\">Java Software</option>";
  echo "<option value=\"3\">Anti Virus</option>";
  echo "<option value=\"4\">s40v2/s40v3-Themes</option>";
  echo "<option value=\"5\">s60/s60v3/Nseries/-Themes </option>";
  echo "<option value=\"6\">Sony Ericsson-Themes </option>";
  echo "<option value=\"7\">s30/40/s40v2-Games </option>";
  echo "<option value=\"8\">s60/s60v3 Games </option>";
  echo "<option value=\"9\">Nseries/Eseries/Ngage-Games </option>";
  echo "<option value=\"10\">Sony Ericsson-Games</option>";
 echo "<option value=\"11\">Full MP3</option>";
  echo "<option value=\"12\">3GP Videos</option>";
  echo "<option value=\"13\">Scandal</option>";
echo "<option value=\"14\">Gameboy Games</option>";
  echo "<option value=\"15\">Naruto-Themes/Poly/MP3</option>";
  echo "<option value=\"16\">MP3/MIDI/WAV/POLY/AMR/RAR</option>";
     echo "<option value=\"17\">Opera Software</option>";
    echo "<option value=\"18\">Images</option>";
  echo "</select><br/>";

Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

riderz Lead · 975 posts #3

jip all the files get uploaded to a folder and sql


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

wap2k Developer · 168 posts #4

Do the files you upload get added to that folder? If so the problem may be with your vault listing code in lists.php. Is the sql inserting into the ibwf_vault table ?

wap2k Developer · 168 posts #5

Try this see if the problem is solved ?? Is the name of the list meant to be file just double check to be sure 🙂

echo "<select name=\"file\" multiple=\"false\">";
echo "<option value=\"1\">Symbian Software</option>";
echo "<option value=\"2\">Java Software</option>";
echo "<option value=\"3\">Anti Virus</option>";
echo "<option value=\"4\">s40v2/s40v3-Themes</option>";
echo "<option value=\"5\">s60/s60v3/Nseries/-Themes </option>";
echo "<option value=\"6\">Sony Ericsson-Themes </option>";
echo "<option value=\"7\">s30/40/s40v2-Games </option>";
echo "<option value=\"8\">s60/s60v3 Games </option>";
echo "<option value=\"9\">Nseries/Eseries/Ngage-Games </option>";
echo "<option value=\"10\">Sony Ericsson-Games</option>";
echo "<option value=\"11\">Full MP3</option>";
echo "<option value=\"12\">3GP Videos</option>";
echo "<option value=\"13\">Scandal</option>";
echo "<option value=\"14\">Gameboy Games</option>";
echo "<option value=\"15\">Naruto-Themes/Poly/MP3</option>";
echo "<option value=\"16\">MP3/MIDI/WAV/POLY/AMR/RAR</option>";
echo "<option value=\"17\">Opera Software</option>";
echo "<option value=\"18\">Images</option>";
echo "</select><br/>";

or

<?php
$value = Array("Symbian Software","Java Software","Anti Virus","s40v2/s40v3-Themes","s60/s60v3/Nseries/-Themes","Sony Ericsson-Themes","s30/40/s40v2-Games","s60/s60v3 Games","Nseries/Eseries/Ngage-Games","Sony Ericsson-Games","Full MP3","3GP Videos","Scandal","Gameboy Games","Naruto-Themes/Poly/MP3","MP3/MIDI/WAV/POLY/AMR/RAR","Opera Software","Images");

$amount = count($value);

echo "<select name=\"file\" multiple=\"false\">";
for($i=1; $i < $amount; $i++){ 
echo "<option value=\"$i\">$value[$i]</option>";
}
echo "</select><br/>";
?>
cedwap Developer · 64 posts #6

post your whole script(getnow.upload.uploader and downloads.php..let us fix it

PROUD TO BE PINOY! just PM me if you have questions about installing/coding script...feel free to PM me if your asking to be your coder....i want helping others so i decided to be a personal coder without asking asking for an exchange...PM now..

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close