how to call, execute and deliver info from server
Hello all,
I have a program that sits on my server. I need to write a page that instructs the visitor to input some data, click on submit, then call the program on my server, start it running with the input the visitor gives, then produce a result, then hand that result back to the browser to deliver to the visitor.
Could anyone give me a few hints as to how to get started or when to look for a tutorial for this?
Any help is greatly appreciated.
-Lisa
kb posted this at 20:43 — 22nd May 2006.
He has: 1,380 posts
Joined: Feb 2002
It depends on the limits of your server. Are you allowed to run PHP, ColdFusion, or ASPs? Or are you restricted to CGI/Perl scripts?
It also depends on the variables in which you are trying to submit from (aka the parts of the form) to the database you're attempting to submit to (flat file, MySQL, Oracle, etc).
We need some more paramaters before we can help you in any way!
blelisa posted this at 16:51 — 23rd May 2006.
They have: 31 posts
Joined: Aug 2003
I have asp allowance, php allowance full r/w allowance etc.
I am not submitting to a database. I am submitting to a .exe program written in DOS
blelisa posted this at 18:11 — 24th May 2006.
They have: 31 posts
Joined: Aug 2003
I have tried and tried this and still cannot get it to work. I spoke with my hosting company and all is readable/writable access so there is no limitations but I can't get it to write to my reading.txt file.
Here is my code on my form page:
Code:
<html>
<head>
<title>Form for License Generator</title>
</head>
<body>
<form name="license_input" method="post" action="license_action.asp">
Temp ID<input name="tempid" type="text"></br>
encyyMessage<input name="encmsg" type="text"></br>
start_date<input name="stdate" type="text"></br>
genac<input name="genac" type="text"></br>
genac_exp_date<input name="genexpdate" type="text"></br>
genac_access<input name="genaccess" type="text"></br>
bldc<input name="bldc" type="text"></br>
bldc_exp_date<input name="bldcexpdate" type="text"></br>
bldc_access<input name="bldcaccess" type="text"></br>
bcpm<input name="bcpm" type="text"></br>
bcpm_exp_date<input name="bcpmexpdate" type="text"></br>
bcpm_access<input name="bcpmaccess" type="text"></br>
indu<input name="indu" type="text"></br>
indu_exp_date<input name="induexpdate" type="text"></br>
indu_access<input name="induaccess" type="text"></br>
<input type="submit" value="submit">
</form>
</body>
</html>
Here is the code for my license_action.asp page
Code:
<%
Dim fso
Dim tst
Set fso=Server.CreateObject("Scripting.FileSystemObject")
Set tst="fsp.OpenTexFile("D:\data\websites\clients\magneforcess\reading.txt", 2)
tst.writeline "temporary id = " & Request.Form("tempid")
tst.writeline "encyyMessage = " & Request.Form("encmsg")
tst.writeline "start_date = " & Request.Form("stdate")
tst.writeline "genac = " & Request.Form("genac")
tst.writeline "genac_exp_date = " & Request.Form("genexpdate")
tst.writeline "genac_access = " & Request.Form("genaccess")
tst.writeline "bldc = " & Request.Form("bldc")
tst.writeline "bldc_exp_date = " & Request.Form("bldcexpdate")
tst.writeline "bldc_access = " & Request.Form("bldcaccess")
tst.writeline "bcpm = " & Request.Form(bcpm)
tst.writeline "bcpm_exp_date = " & Request.Form("bcpmexpdate")
tst.writeline "bcpm_access = " & Request.Form("bcpmaccess")
tst.writeline "indu = " & Request.Form("indu")
tst.writeline "indu_exp_date = " & Request.Form("induexpdate")
tst.writeline "indu_access = " & Request.Form("induaccess")
tst.close
Set tst = Nothing
Set fso = Nothing
%>
When I try it, I get a 404 error and there is nothing on my reading.txt file on my server.
Any clues?
Thanks!
__________________
Lisa
kb posted this at 21:07 — 24th May 2006.
He has: 1,380 posts
Joined: Feb 2002
I'm not familiar with ASP, so I can't really be of any help. Sorry...
Anybody else?
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.