Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by HugoLeite

  1. HugoLeite

    Passing values in <SELECT> boxes

    I'm also using ASP....
  2. HugoLeite

    Passing values in <SELECT> boxes

    I'm sorry, I didn't explainded the problem well, I was in a hurry. I have a form with two select's, i pass some values from the first to the second and store them in an array, how do i pass the values that are in that array. <------------------ Function I'm using --------------- function...
  3. HugoLeite

    Passing values in &lt;SELECT&gt; boxes

    Is there any way of passing the values stored in an array using the method POST ?
  4. HugoLeite

    How do you add a scrollbar to a frameset

    you can write it yourself, go to code view, and in the frameset you want to add the scroolbar just add ' scrollbar=&quot;both&quot;
  5. HugoLeite

    Colect info and send ?

    You can change the ACTION of your form to <FORM METHOD=&quot;post&quot; ACTION=&quot;mailto:your@email.com&quot; ENCTYPE=&quot;text/plain&quot; onSubmit=&quot;return confirmSend()&quot;> and you can add a confirmation box so the user can confirm that he wants to send it... <SCRIPT...
  6. HugoLeite

    Getting uniqueidentifier from newly created DB rec

    If you have a field that is intended for writing some sort of uniqueidentifier in it, you could try creating your own unique identifier, the date and a random number, or simply a 4,5,6 digit number whatever. I didn't understood your doubt quite well. If this isn't what you really wanted, feel...
  7. HugoLeite

    Need help moving result of query into variable?

    Sorry for the confiusion, but I hadn't understod your doubt very well, it won't happen again.... skyflyer's tip is the rigth one... [neutral]
  8. HugoLeite

    Need help moving result of query into variable?

    I think it should look like this... $my_query1 = &quot;SELECT security.ssn FROM security WHERE (((security.user_id)='.$user_id.'))&quot;; $my_result1 = mysql_query ($my_query1) or die (&quot;Query Failed&quot;); ... $my_query1 stays as an array.
  9. HugoLeite

    Newbie question

    [smile] ............................................................ the common function to know the file type is $_FILES['userfile']['type'], an example of a return is 'image/gif', I am sure that you already had seen this, but I believe this is the only way.... more...
  10. HugoLeite

    Newbie question

    <? $filename=&quot;foto.jpg&quot; $rest = substr($filename, -3); // returns &quot;jpg&quot; ?> more on... http://pt2.php.net/manual/en/function.substr.php
  11. HugoLeite

    Newbie question

    <? $filename=&quot;foto.jpg&quot; $rest = substr(&quot;&quot;, -3); // returns &quot;jpg&quot; ?> more on... http://pt2.php.net/manual/en/function.substr.php
  12. HugoLeite

    delete files

    with this <? $stringURL=&quot;http://mysite.com/images/my_pic.jpg&quot;;; $everyValues=explode(&quot;/&quot;,$stringURL); //separate the values within &quot;/&quot; $countArray=count($everyValues); //count how many elements are in the array echo $everyValues[$countArray]; //print only the last...
  13. HugoLeite

    delete files

    try using explode() Example: <? $stringURL=&quot;http://mysite.com/images/my_pic.jpg&quot;; $everyValues=explode(&quot;/&quot;,$stringURL); $countArray=count($everyValues); echo $everyValues[$countArray]; ?> you can also go into the PHP website and try finding for preg_split()...
  14. HugoLeite

    delete files

    Here are the functions that my company uses to upload and validate ppictures, they problably have gotten them in an web page. They usually don't delete the files, they keep them there and can upload other/the same file over that one, replacing it... function validate_upload($the_file...
  15. HugoLeite

    SQL INSERT - PHP variables with quotes on the text

    I figured out that if I didn't use any function at all when I was using a FORM with a POST or GET method, it would do just fine, if I didn't wanted the data stored. But If I want to store the data in a database, I'm going to have to use a function that escapes bad input, and if when I am...

Part and Inventory Search

Back
Top