Dear Sir,
I design a webpage online in that page I have a query form which mention "Text/Textarea/listbox/radiobutton" I save all information in txt file whenever I am working on client side means local server (inetpub) but when I put it online it doesn't work might be path problem please suggest me the path of that file
My file coding run in local machine:
-----------------------------------------
------------------------------------------------------
it works but put in online doesn't work please help
for example my site address is: "www.agitours.i n"
Thanks in advance
I design a webpage online in that page I have a query form which mention "Text/Textarea/listbox/radiobutton" I save all information in txt file whenever I am working on client side means local server (inetpub) but when I put it online it doesn't work might be path problem please suggest me the path of that file
My file coding run in local machine:
-----------------------------------------
Code:
<!-- this server side script programmed by ZaheerAnsari -->
<%@ language= "VBScript"%>
<html>
<head>
<%
if not request.form("sel5")="" then
if not request.form("message")="" then
if not request.form("txtfirst")="" then
if not request.form("txtemail")="" then
if not request.form("txtphone")="" then
if not request.form("txtdate")="" then
if not request.form("txtadd")="" then
if not request.form("txtcity")="" then
if not request.form("txtduration")="" then
if not request.form("sel1")="" then
if not request.form("sel2")="" then
if not request.form("sel3")="" then
if not request.form("sel4")="" then
set myfileobject=server.createobject("scripting.filesystemobject")
set afile=myfileobject.opentextfile("C:\Inetpub\wwwroots\myfiles\file.txt",8,true)
afile.write("Your Tour Type :")
afile.writeline(request.form("sel5"))
afile.write("Enquery about Your Tour Detail :")
afile.writeline(request.form("message"))
afile.write("Your Name :")
afile.writeline(request.form("txtfirst"))
afile.write("Email-id :")
afile.writeline(request.form("txtemail"))
afile.write("Contact No :")
afile.writeline(request.form("txtphone"))
afile.write("Tour Date :")
afile.writeline(request.form("txtdate"))
afile.write("Your Address :")
afile.writeline(request.form("txtadd"))
afile.write("Your City/Sate:")
afile.writeline(request.form("txtcity"))
afile.write("Tour Duration:")
afile.writeline(request.form("txtduration"))
afile.write("No. of Travellers Adults :")
afile.writeline(request.form("sel1"))
afile.write("Children :")
afile.writeline(request.form("sel2"))
afile.write("Infant :")
afile.writeline(request.form("sel3"))
afile.write("Preferred Time to Call :")
afile.writeline(request.form("sel4"))
afile.writeline("-----------------------------------------------------------------------------------")
afile.close
end if
end if
end if
end if
end if
end if
end if
end if
end if
end if
end if
end if
end if
%>
</head>
<body bgcolor=goldenrod >
<center><img src="critic.gif"><img src="flshlite.gif"><img src="critic.gif"></center>
<h2 align=center>Thanks a Lot of your Tour Enquery via agi Tour & Travels</h2>
<hr>
We will reply back to you within 24 hour of your enquery with complete detail of your asked tour. if you want any other travel related information about your tour plan, please contact us:
<br><br>
<center><b> agi Tour & Travels</b><br>IX/3966, Ajit Nagar Main Chowk, <br>Gandhi Nagar, Behind Seelampur Metro Station, Delhi-110031<br>Phone: +91-9911951667,
+91-9250287466, +91-9311778556<br> Web: www.agitours.in, | Email: info@agitours.in <br><br> @Copyright 2013-14
<center><a href="index.htm"><img src="doorin2.gif"></a></center>
</body>
</html>
it works but put in online doesn't work please help
for example my site address is: "www.agitours.i n"
Thanks in advance
Comment