Thanks Evertjan,
how would the insert query look, below is what I have now but how would I
split that when entering the data 19 into 1 field and David into another?
Dim api_id
Dim sentfrom
Dim timestamp
Dim text
api_id = ParseString(Request.Querystring("api_id"))
from = ParseString(Request.Querystring("from"))
timestamp = Request.Querystring("timestamp")
text = ParseString(Request.Querystring("text"))
sql = "insert into dbo.SMSAPI (api_id,SentFrom,text,timestamp) values ("&
api_id &","& from &",'"& text &"','"& paxname &"',getdate())"
Thanks in Advance
Simon
"Evertjan." <> wrote in message
news:Xns990CE084798C9eejj99@194.109.133.242...
> Simon Gare wrote on 08 apr 2007 in
> microsoft.public.inetserver.asp.general:
>
> > Hi all,
> >
> > is there anyway of separating a string by either a space or + sign, I
> > have an sms.asp page that receives a string in this format below
> >
> > http://acompany.co.uk/online/interna...id=2920893&fro
> > m=447912956700&to=447624813579×tamp=2007-04-07+03%3A56%3A42&text=19%2Bd
> > avid
> >
> > the last part text= I need to split into 2 parts I need to read the
> > first part 19 and match that to the db and then deal with the name
> > David, I have tried everything, is there anyway of doing this even if
> > the string read text=19+david if there was a way of separating the
> > two.
>
>
> ============= test.asp ======================
> <% 'vbscript
>
> if request.querystring("text").count=1 then
> a = split(request.querystring("text"),"%2B")
> response.write a(0) & "<br>"
> response.write a(1) & "<br>"
> end if
>
> %>
>
> <form method='get'>
> <input name='text' value='19%2Bdavid'>
> <input type='submit'>
> </form>
> ==============================================
>
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)