Thanks varakal -
BTW do you know of something i can learn about what is going on in that code?
I appreshiate the answer however KUDOS!!!
- Scott
Wise men ask questions, only fools keep quite.
Okay NOT asking for the code asking for direction.
I need to check and see if a variable has a numaric value or a char value.
IE -
$val1 = "2345b";
if ($val1 is all numaric) { do this....
} else { do this... }
in this instance the else would be executed because $val1 has a 'b' in it...
KevinADC -
thanks for pointing me in the right direction!!!!
here is the finished code for anyone that ever searches this FAQ!
if ($QUESTION::IMAGE ne '') {
my $filename = $query->param('QUESTION-IMAGE');
my $upload_dir = "images/senario";
$filename =~...
cathiec,
Im looking to do something simular to this except it would be with images.
IE you have an image as a base: IMAGE01.gif and on that image there are 1 to 3 different places that the user can place a drag and drop image.... these being marked as placement_a, placement_b, placement_c...
Rieekan,
Good idea if i knew how - im setting up for classes for FLASH MX Pro now - and i knew that you could do a small preloader - but then im still at the same place.
There would have to be a selector for reg HTML.
- Scott
Wise men ask questions, only fools keep quite.
Paul -
Thanks bud! Thats what i currently have - I know how to test for browser type with the $ENV{BROWSER} but speed is the concern - the guy that wrote the flash for the site left - and ofcourse its S-L-O-W loading on low speed connections - we want to get rid of the front page that says go...
Is it possible to test the inbound user connection speed?
Then say:
if ($connection_speed <= 26.6) {
# do somthing
} elsif ($connection_speed <= 56.6) {
# do somthing
} else {
# do somthing
}
Wise men ask questions, only fools keep quite.
Okay along the same lines - as mu last question. Now i need to change the file name upon UPLOAD.
for example:
if the file name the user selects in the form tag QUESTION-IMAGE is say example01.gif - while using the following code:
I need to rename the file upon upload to: $NEW::FILENAME...
Thank you duncdude!
That was it!!!!!!
One question - when i want to do txt files then i use the first way and thats that right?
- Scott
Wise men ask questions, only fools keep quite.
Okay I think I'm a dorkis - but here goes - I have been searching for a way to upload Binnary stuff IE gifs and jpegs to my server via perl - here is the code that im using:
use CGI;
$upload_dir = "/uploads";
$query = new CGI;
$filename = $query->param('upload_file');
$filename =~...
I am trying to use a select statement from a MySQL DB using perl - I need to place the retreived data into an array - IE @db_data.
Here is the code that I am currently using:
my $dsn = "DBI:mysqlPP:nn_work_orders:$DB::SERVER";
my $dbh = DBI->connect($dsn, $DB::USER, $DB::PASS)...
Waiterm,
Thanks!!!
Sorry it took me so long to look at this post i have been dealing with a few things. I am going to be looking into this and yes that makes ALOT of sense! I know that the way that im writting some of this code is the long way! And i appreshiate any and all help!
- Scott...
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.