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...
You can change the ACTION of your form to
<FORM METHOD="post" ACTION="mailto:your@email.com" ENCTYPE="text/plain" onSubmit="return confirmSend()">
and you can add a confirmation box so the user can confirm that he wants to send it...
<SCRIPT...
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...
I think it should look like this...
$my_query1 = "SELECT security.ssn
FROM
security
WHERE
(((security.user_id)='.$user_id.'))";
$my_result1 = mysql_query ($my_query1)
or die ("Query Failed");
... $my_query1 stays as an array.
[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...
with this
<?
$stringURL="http://mysite.com/images/my_pic.jpg";;
$everyValues=explode("/",$stringURL); //separate the values within "/"
$countArray=count($everyValues); //count how many elements are in the array
echo $everyValues[$countArray]; //print only the last...
try using explode()
Example:
<?
$stringURL="http://mysite.com/images/my_pic.jpg";
$everyValues=explode("/",$stringURL);
$countArray=count($everyValues);
echo $everyValues[$countArray];
?>
you can also go into the PHP website and try finding for preg_split()...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.