|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello
Can anyone help me with asp code? I try to convert a PHP page to ASP, thanks and x greetings from holland. Natas PHP Code:
|
|
#2
|
||||
|
||||
|
yep here you go:
Code:
<form name="schakelen" method="post" action="<%= Request.ServerVariables("Script_Name")%>">
<div align="center"><font face="arial">
<select name="pin1" size="1" id="pin1">
<option value="0">Uit</option>
<option value="1">Aan</option>
</select>
</font></div>
<div align="center"><font face="arial">
<select name="pin2" size="1" id="pin2">
<option value="0">Uit</option>
<option value="1">Aan</option>
</select>
</font></div>
<input type="submit" name="Submit" value="Verstuur">
<%
Dim objShell, strCommand
If Request("Submit")<>"" Then
Set objShell = Server.CreateObject("WScript.Shell")
strCommand = "c:\lptwrite.exe 0000" & Request("pin4") & Request("pin3") & Request("pin2") & Request("pin1")
objShell.Run strCommand, False
Set objShell=Nothing
End If
%>
you need to grant permissions to IUSR account over the lptwrite.exe file and all files associated with it. |
|
#3
|
|||
|
|||
|
Hello Shadow Wizzard
Thanks for u support, i have the permissions set to IUSR account on the lptwrite.exe and try the asp page but it doenst work. When i try it at the promp and test the lptwrite.exe that wil be work fine, but with the asp page it doesnt work, maybe any suggest? Thanks also and again greetings from amsterdam xx Natascha |
|
#4
|
|||
|
|||
|
He thanks
Sorry but it works fine, i try to connect a other pin ah, wrong stupid me ha thanks again x nats |
|
#5
|
||||
|
||||
|
cheers Natascha, welcome to aspfree!
![]() |
|
#6
|
|||
|
|||
|
again problemens
Hello Shadow Wizzard
wel everythings works fine, but there is a problem again, i have install a new server ISS standaard on a windows 2000 machine and paste the page into it, set the rights on lptwrite.exe but it don't work When i try go to the site www.domain/test.asp then i see the page but when i click on submit the page doesnt go further, i see the explorer try to go to the next page but he's searching searching . . . . doesn;t matter i hope understand my english) any idee what can be wrong? Thanks again xx natascha |
|
#7
|
||||
|
||||
|
99% there is anti virus installed on that server and blocking IIS...
try to disable the Script Blocking of the anti virus if possible (for example Norton Anti Virus) or to remove the anti virus from the server (Panda for example) and put something more proper for servers. |
![]() |
| Viewing: ASP Free Forums > Other > ASP Free Lounge > PHP to ASP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|