|
Hi
Ive written a PERL script and want a simple GUI for it.
Ive started doing it in HTML and hoped to be able to cut and paste data in, press calculate and then be presented with the findings.
How do i get data from a html forms text box, into my perl script?? Ive searched the web put everyone wants to use cgi. This wouldnt work without a web server would it?
Thanks!!
|
|
|
|
|
If you want your Perl script to be executed from a web browser, you'll need to have it as a CGI script on a web server -- that's just how things work.
If you want to build a standalone GUI for your app, there are a number of toolkits with Perl bindings you can use to construct the GUI: Win32::GUI, Gtk, Qt, Tk, etc. Since you know HTML already, you may be interested in the Tk::HTML[^] module.
- Mike
|
|
|
|
|
Hi all,
I have an interesting problem that I can't seem to get past.
In my web application, I need to create a dynamic array that contains the field names and values to pass to a database. (The value array is not a problem) The field names on the form are numerically named, 1,2,3,4 and so on. I am trying to make the array output this :
aTextFieldName(1) = Request.Form("1")
aTextFieldName(2) = Request.Form("2")
etc...
where the "number" is created on the fly
iColumnTotal = 5
For i = 1 to iColumnTotal
aTextFieldName(i) = request.Form(i)
Next
My problem is getting the number to display inside of the Request.Form brackets with the quotes. This works fine when I hard code it. I have tried escaping the quotes with chr(34)
request.Form(chr(34) & i & chr(34))
but that doesn't work, double quotes causes an error
request.Form(""i"")
and simply putting the variable without quotes won't work either.
request.Form(i)
Any of you geniuses out there have a solution?
Thanks
Doug
|
|
|
|
|
Ok your problems is a lack of understanding of how quotes work within strings. Whenever you create a string expression on the fly, it always needs to be encased in quotes (of course), so when you need a quotation mark inside the string, you have to tell vbscript that it's a quote mark and not the end of the string. You do this with a double quote. So if you have a quote mark at the start of the string, you'll end up with three quotes. So what you need to do is:
request.Form("""" & i & """")
i.e. open quote to start string, double quote to signify a quote mark and not the end of the string, then a quote to close the string.
NATHAN RIDLEY
Web Application Developer
email: nathan @ netlab.com.au
[remove the spaces before and after the @ symbol]
|
|
|
|
|
Hi
I Think you need to get the value from your form after the sumbition. Can you try the below script to read your posted values.
request.from("&i&")
As simple as to pass the value in recordset.
----------------------------
while 1
yours friendly
|
|
|
|
|
Ok, group effort! Thanks both of you guys, you pointed me in the right direction. While I wasn't able to get either of your solutions to work, it made me think a little harder and combine the best of both answers (which usually doesn't work with programming.)
Yes, I was having issues escaping the quotes as the previous methods didn't work. I tried chr(34) which works in SQL strings and double quotes as well. What I forgot to do with the double quotes was combine them with the variable by using the ampersand.
So the final solution looked like this:
For i = 1 to 5
aTextFieldName(i) = Request.form(""&i&"")
Next
Thanks again!
|
|
|
|
|
please refresh my memory! how do i fix this?
Response.Redirect("/site/Alumni/ThanksSurvey.asp?sReceive=<%=sReceive%>")
basically, after i send my data and auto replies via email, i would like to redirect the user to a thank you page. i need to grab the variable sReceive so i know what message to pick out on the thanks page.
thanks in advance for your replies,
donna
|
|
|
|
|
Response.Redirect("/site/Alumni/ThanksSurvey.asp?sReceive= " & sReceive)
----
hxxbin
|
|
|
|
|
Your right man !!!
----------------------------
while 1
yours friendly
|
|
|
|
|
Hi,
I need to write a batch file that copies all ASP files (.asp) in my CD rom to a folder in the hard drive. It should override any existing files of the same name.
Prompts will also be provided to the user on the Windows interface, and the progress of the copying over of files is shown in a pop-up box.
I'm new to batch files. Any links that I can go to?
Grateful for your help.
Thanks!
|
|
|
|
|
I never see a batch file (.BAT) file with a pop-up, If you need that I recommend use Script Hosting, in JS or VBS files. You make the script and with WScript.Echo you can make a pop-up.
----
hxxbin
|
|
|
|
|
The trouble with logging out of a session in a web application is that irrespective of the fact that you cleared the session, etc, the user can hit back a few times to the page that process the login and then hit refresh to repost the login data. Any ideas on how you would prevent the user from being able to re-post that data? I wonder if a simple response.redirect after processing the login would do that trick...
NATHAN RIDLEY
Web Application Developer
email: nathan @ netlab.com.au
[remove the spaces before and after the @ symbol]
|
|
|
|
|
Nathan Ridley wrote:
Any ideas on how you would prevent the user from being able to re-post that data?
Note to all web application developers (myself included) - if the user hits back and resubmits form data, handle it in the manner a user would reasonably expect! This means in your case accepting the login again and sending the user to a suitable start page.
In other cases, this might mean entering the web application part way through the process, refilling in details where necessary, checking the updates being made to any databases aren't duplicated or corrupted, and so forth.
That's hard work, yes, and requires that you've designed your application and its flow before you go and write half a million lines of ASP.NET code for BoondoggleApplication 1.0.
But if it comes off, your application will be more robust in the face of the random button clickers, and you won't be asking stupid questions like "How do I disable the back button in Internet Explorer", which occur here with depressing regularity. Plus, your users will love you (or at least the next best thing, which is not wish you were killed under the weight of a thousand copies of W3C specs printed using 72 point fonts and very heavy paper.)
Browsers have features like history, back, and forward for a reason, and making your web application gratuitously broken when those are used is unacceptable!
BTW, your solution won't work. All you're doing is stuffing more stuff into the users history for them to click back and forward through .
Ian Darling
"The different versions of the UN*X brand operating system are numbered in a logical sequence: 5, 6, 7, 2, 2.9, 3, 4.0, III, 4.1, V, 4.2, V.2, and 4.3" - Alan Filipski
|
|
|
|
|
what i do is set a cookie or session var that tells me they are logged in ... any page that needs it will check for it
if they try to log in again i simple dont let them ... i redirect them back to where they came from
"there is no spoon" biz stuff about me
|
|
|
|
|
I have installed visual studio.net 2002 (professional)successfully.After i created a virtual folder and a subweb to create a new ASP.NET web application.But when i want to create the web application the following error message appeared: The file path 'g:\inetpub\wwwroot\webfolder\wavfff\cswaa2' does not correspond to the URL 'http://Localhost/webfolder/wavfff
/cswaa2'.The two need to map to the same server location.HTTP.
ERROR 500: server error.
I am using a single computer which connect to the internet by a modem and a phone line.
I want to create a web project to download it on my own web service which i build it by using the Hosing Pane in the visual studio.net.I am using the NTFS system(for the first time) to define the IIS and its components without any problems.I didnt find a solution for this problim for a long time so i will be very happy if some one help me.
|
|
|
|
|
This problem has been addressed several time. Use the search
|
|
|
|
|
Hi,
Have any of you guys had any experience with hardware SSL.
I need to research this. Specifically the performance over non-encrpyted standard IIS.
If I turned SSL on in IIS (software!) it will probably kill performance of the web application. Is this not present with the SSL solution? can it encrypt as fast as it receives the data?
Any thoughts on load-balancing with SSL? I understand for SSL to work you need an SSL Session (i.e encrpytion keys being used specific to the session) So transfering from server to server in a server farm probably will not work. Unless the Hardware solution registers the session against a particular server in the farm?
Thanks - James
James Simpson
Web Developer
imebgo@hotmail.com
P S - This is what part of the alphabet would look like if Q and R were eliminated Mitch Hedberg
|
|
|
|
|
I am now venturing a little further into web security than I have before, and am experimenting with using the Certficate Server on our dev box to issue a server certificate to enabele my test client to make an SSL request.
Our public server certificate, on the live web server, is issued by Verisign, and a colleague tells me the difference is that the local one is not signed. It makes more sense to me that it isn't signed by Verisign, but is signed by our server.
What gives?
Memes don't exist - tell your friends
|
|
|
|
|
Your test server probably is not in the list of trusted authorites. Not a big problem, some clients might show dialog box asking user if they "trust" the authority that issued the cert., or may be have to import certificate manually (sorry, i don't remember the exact scenario, i did it couple years ago)
Edward
|
|
|
|
|
Hi All
I am trying to launch a html file from with another and then return to the first html file to continue executing the rest of the file.
Does anyone know if this is possible, or can help with the code.
Many Thanks
Jaco de Bruin
|
|
|
|
|
|
What is the problem with OWC10 ExportPicture method?
I am using OWC10 on a Windows 2000 Server with IIS 5 to generate charts using the (ExportPicture method) for display on a website. Most of the time, everything works as expected.
Sometimes however, the charts do not display correctly. Sometimes the labels are missing and sometimes there is nothing but a white background with a one-pixel black border around it. The image is the correct size and on the times when only the labels are missing, the chart is in the correct position, as though the labels were present.
It only seems to happen when the server is logged off. As soon as someone logs in, the problem goes away and the charts start appearing correctly. Of course, having just said that, it now isn't working when I am logged in!
Here are some examples: The Good[^], the bad[^] and the ugly[^].
I sent a copy of the source code to Microsoft and they examined it and agreed that I was doing everything correctly. The only advice they could give was to buy a new video card, because apparently 8mb video memory and 512 mb RAM on a server isn't enough to generate a 10k GIF image. Ridiculous! Anyway, I bought a new 32mb video card and of course it still doesn't work.
After this sugestion failed, they refunded my $250 support charge and admitted they were clueless.
This has been an intermittent problem for over 18 months now and still it is not fixed. During that time, I have installed a new server and upgraded from OWC9 to OWC XP, with still the same results.
Things I have tried:
- Setting priveleges on all Office folders to Everyone/Full control.
- Changing the IIS Application Protection from Low/Medium/High
- Installing a new 32mb video card (Microsofts laughable suggestion)
- Installing the latest version of DirectX (Microsoft Suggestion)
- Upgrading all the drivers that I can lay my hands on
- Installing the entire website on a different machine
- Using GetPicture instead of ExportPicture
- Leaving the server logged in with administrator priveleges. (NOT a good idea!)
- Reboot the server whenever the images start to show up incorrectly. Now, while this (mostly) works for a short time it's not a useful solution...
Things I have not tried:
- Purchasing a piece of software that actually works and then re-writing the relevant parts of the web-site.
If anyone has ANY idea what is wrong with this component or my setup or whatever, please let me know!
Thanks.
|
|
|
|
|
With a lot of testing of my client program I eventually get an unhandled soap exception. When I debug the app, the gist of the message is that a timeout occurred on establishing a session with the service and that possibly the max number of channels have been reached. If I go to the server and restart IIS, every starts to function again. I suspect that there is some method I need to invoke when my client application closes so that the object that was instantiated when it started is properly destroyed. The ctor of my mainform class instantiates the proxy class for the web service, and it is assigned to a member variable to be used in other methods of the form. I'm concerned that I need to call a dtor or some other method in order to ensure that everything gets cleaned up correctly. Thanks for any ideas.
Chris Meech
We're more like a hobbiest in a Home Depot drooling at all the shiny power tools, rather than a craftsman that makes the chair to an exacting level of comfort by measuring the customer's butt. Marc Clifton
VB is like a toolbox, in the hands of a craftsman, you can end up with some amazing stuff, but without the skills to use it right you end up with Homer Simpson's attempt at building a barbeque or his attempt at a Spice rack. Michael P. Butler
|
|
|
|
|
It doesn't seem like a client side problem, probably the server is the one to blame.
Check lack of what resources causing it (too many open sockets, database connectens etc.).
Edward
|
|
|
|
|
Hi
i have a login script, but after the user has logged out, i want to disable the back button. how is this done, and is it a proper controlling method?
tx
|
|
|
|