2 way redirect not working | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through June 24, 2009 ⬆ |
◄ ► |
Author | Message | ||||
Farhan Anjum New member Username: Farhananjum Post Number: 1 Registered: 05-2009 |
dear all, i am trying to redirect response of received sms through asp code but it is showing some error. the code is <%@ Language="VBScript" %> <% Option Explicit %> <html> <head> <title>Insert into database</title> </head> <body> <% dim connection dim sSQL, sConnString sSQL="INSERT INTO testtable (sen, message) VALUES ('" & request.querystring("sender") & "','" & request.querystring("fullsms") & "')" sConnString="PROVIDER=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & Server.MapPath("testdb.mdb") 'sConnString="Provider=Microsoft.ACE.OLEDB.12.0" & "Data Source=" & Server.MapPath("testdb.accdb") Set connection = Server.CreateObject("ADODB.Connection") connection.Open(sConnString) connection.execute(sSQL) Connection.Close Set Connection = Nothing response.redirect("http://localhost:8811?phonenumber=xxxxxx&text=thanks") %> </body> </html> ...... sms debug file shows some error. can anybody help me to resolve this issue
| ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 853 Registered: 08-2008 |
Hi, Sorry for the delay in response! It looks like the problem is a missing "/" after the port number in the URL. Change: http://localhost:8811?phonenumber= to: http://localhost:8811/?phonenumber= (I'm not sure why the "/" is needed in this case, but that does seem to be what is causing the confusion.) -- Des NowSMS Support | ||||
Farhan Anjum New member Username: Farhananjum Post Number: 2 Registered: 05-2009 |
Thanks a lot Des.It is working fine now. Below mentioned command also worked for me.Instead of calling main frame page i called directly the messaging sending page from asp scrip. response.redirect("http://localhost:8811/send text message.htm?phonenumber=xxxxx&text=xxxxxxx.") |