Thanks for the tip.
Actually I did find a solution using javascript which eliminates the possibility from getting to the stage where this routine was necessary.
Jett
Hi guys,
A short question:
Is it possible to go one page backwards with a perl command from within a perl script, like “window.history.go(-1)” with javascript?
Jett
Think it is solved.
#sort prop
open (data, "<$profile") or &error("Unable to open the data file");
@data=<data>;
close(data);
@data = sort {$a <=> $b} @data;
open (wdata, ">$profile") or &error("Unable to write to the data file");
print wdata @data...
I have a sorting question. Picture a datafile with about ten fields seperated by ‘:’.
The first field is unique and nummeric. As records are printed on the bottom of the datafile after a modification I would like to do a sort on the first field of the datafile to move the modified record to the...
Maybe getting a little closer.
As said in the documentation of Dreamweaver ENCTYPE="multipart/form-data" should be added to the form tag when using file fileds which I did and works fine with CGI.pm.
After removing this part from the form tag $fileID gets populated and the file is...
I use 'Post' so I don't think I use the wrong syntax to read the variable (the file variable) or are file field always sent as 'get' (I'm going to try this). I put a print command in the script to print $fileID which remained empty. That's why my guess is that the script can't open the...
Hi, goBoating. Your script for file uploading is working but I run into a problem. I would like to use the script as part of another script I'm working on but this script uses 'standard' CGI and not 'my CGI'. Sorry for the poor explanation, I don't know how the different sorts of Perl are called...
Thanks goBoating!
Initially I received a warning for 'Dangerous File' and uploading was cancelled. This happended twice with a *.gif file and a *.txt file. I commented the 'unless' part of the script and after this it did upload the file to the indicated folder. Any idea why both files were...
Hi John,
I'm afraid I can't give you an answer why the script isn't working for you.
I tried it myself as I have been looking for something to upload files from the browser through CGI aswell.
I don't get errors when running the script (although I changed some parts as some how 'use CGI;'...
I needed this! I already started digging in all sorts of scripts to find the solution as it had to do with using 'get' instead ofr 'post' but I didn't yet manage to find a script that used 'get' to see the difference.
Thank you so much goBoating. I'm trying to create some script and to my own...
I'm still not finished with this and I think the problem is somewhere else.
I made a simple form which is sent using 'get' in order to create the same sort of url:
consult.pl?add=show&exp_nr=12
This isn't working either!
Can anybody tell me how to use this way of sending variables to a...
Mike, thank you for helping with the increment question. I must have done something wrong as $v=$v+1; does work. It is used to increment a value read from a data file. I didn’t try this yet, maybe the problem is caused somewhere else.
Question 1:
Underneath is a stripped version of the script...
Hi,
I’m busy with a script that creates an html page with a number of links to the same script, a link looks like this:
<a href="consult_exp.pl?add=show&exp_nr=12"><b>12</b></a>
What I don’t understand is that the variables ‘add’ and ‘exp_nr’ are not available in the script. I...
Problem is solved, probably not really elegant but this is what I did:
$add='"';
$result .="<option value=$add$var$add>$var</option>";
Thanks for all the help,
Jett
What I'm trying to do is search through a datafile and create some html code when a $ match a field, it does work except from showing the corresponding field which is ouputted as $var. The code looks like this:
if ($var eq $input{'office'}) {
$result .='<option...
I'm sorry. What's happening is that everything between <> is not printed BUT it is included in the $ (as seen by schecking the source).
So it is doing what I wanted to. But there is another problem as parts of the contents is formed by individual $'s and it doesn't show the value of the string...
Thank you goBoating for helping,
$string .='It did work but only partially as <these thingies and everything between it> is ignored!';
with the print result:
It did work but only partially as is ignored!
I tried to put everything between "" like:
$string .='"<something here>...
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.