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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: jett
  • Order by date
  1. jett

    one page backwards with perl?

    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
  2. jett

    one page backwards with perl?

    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
  3. jett

    Sorting problems

    Think it is solved. #sort prop open (data, &quot;<$profile&quot;) or &error(&quot;Unable to open the data file&quot;); @data=<data>; close(data); @data = sort {$a <=> $b} @data; open (wdata, &quot;>$profile&quot;) or &error(&quot;Unable to write to the data file&quot;); print wdata @data...
  4. jett

    Sorting problems

    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...
  5. jett

    Calling cgi from another cgi

    I'm only a beginner and not sure if this is what you want but it might work: require 'newcgi.cgi'; Jett,
  6. jett

    for goBoating or anybody else who can help me with this...

    Maybe getting a little closer. As said in the documentation of Dreamweaver ENCTYPE=&quot;multipart/form-data&quot; 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...
  7. jett

    for goBoating or anybody else who can help me with this...

    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...
  8. jett

    for goBoating or anybody else who can help me with this...

    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...
  9. jett

    File Uploading

    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...
  10. jett

    File Uploading

    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;'...
  11. jett

    problems reading variables

    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...
  12. jett

    problems reading variables

    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...
  13. jett

    add info to $?

    Yes it did work Shail, in my first attemp I misstyped it (\&quot;$var&quot;\). Thank you, Jett
  14. jett

    problems reading variables

    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...
  15. jett

    add info to $?

    I tried, but it still gives errors, Jett
  16. jett

    problems reading variables

    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=&quot;consult_exp.pl?add=show&exp_nr=12&quot;><b>12</b></a> What I don’t understand is that the variables ‘add’ and ‘exp_nr’ are not available in the script. I...
  17. jett

    add info to $?

    Problem is solved, probably not really elegant but this is what I did: $add='&quot;'; $result .=&quot;<option value=$add$var$add>$var</option>&quot;; Thanks for all the help, Jett
  18. jett

    add info to $?

    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...
  19. jett

    add info to $?

    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...
  20. jett

    add info to $?

    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 &quot;&quot; like: $string .='&quot;<something here>...

Part and Inventory Search

Back
Top