Sorry to offend you kaht. I was simply offering a solution because i was told you can not change the field once submitted.
Yes, it is important on my site that the field clears if the user chooses not to upload the file, as i am using an 'onChange' instance .. anyway, i'll think twice before...
How about this then (still doesn't work, but you get what i'm trying to do!)
<script>
function uploadImage(thefield) {
input_box=confirm(" Upload / Replace image with this file ? ");
if (input_box==true) {
document.image.submit(); }
else {
var DefaultDivArray = new Array();
DefaultDivArray...
can you help with this, i'm trying to blank the text field if the cancel button is selected ..
<script>
function uploadImage(thefield) {
input_box=confirm(" Upload / Replace image with this file ? ");
if (input_box==true) {
document.image.submit(); }
else {
thefield.value = "";
}
}
</script>...
I'm getting a 500 Internal Server error with this script, any ideas?
#!/usr/bin/perl
use GD;
use strict;
use warnings;
&jpg_resize();
print "Content-type: text/html\n\n";
print "<html><body>Done</body></html>";
exit();
sub jpg_resize
{...
The remote server is Linux, but i don't have access total access, as its a paid web host.
The pc is windows xp.
I was thinking along the lines of a script running on the server to copy the files to the pc ( ip addy ).
Sorry, yes, it should have read,
FileName|CompleteDate|OrderDate|OrderNumber|Price|CustomerName
This amount of code was the only way i could see to do it. I'm sure there is a simplier way, i'm new to perl tbh.
I'm trying to sort a pointer file by its contents, which will in turn allow me to display (FileName) in the correct order
.
The pointer file is as follows ..
FileName|CompleteDate|OrderDate|OrderNumber|CustomerName
eg. 123456|27|26|123|Jon Doe
On the page is a option to select how to sort ...
i have several text files in a directory, all formated like so:
Date|27/10/2006
Order Number|123456
First Name|Blah
Last Name|Blah
etc ..
question is, how do i sort and display the contents of each file by day of the month ?
Thanks in advance
I need a script to display each months name .. but this only displays the varable name i.e $month10 ..
my $month1 = "January";
my $month2 = "February";
my $month3 = "March";
my $month4 = "April";
my $month5 = "May";
my $month6 = "June";
my $month7 = "July";
my $month8 = "August";
my $month9 =...
heres my onBlur function to change the first letter of each word to uppercase.
function toUpper(value) {
var pattern = /(\w)(\w*)/; // a letter, and then one, none or more letters
var a = value.split(/\s+/g); // split the sentence into an array of words
for (i = 0 ; i <...
Heres my directory tree:
/cgi-bin
-/carts
-/Temp_ORDERS
this_script.cgi
this_script:
$directory = 'carts';
opendir(DELE, $directory) or die "Can't Open directory";
@TODELETE = readdir(DELE);
chdir($directory) or die "Can't Change directory";
foreach $file (@TODELETE) {
if (-d...
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.