PDA

View Full Version : parsing text returned from script


ultrassl
05-15-2003, 12:46 AM
:confused: from UK.
I am calling a script which returns information in text form. When the script has been called the text is returned in the browser like :

SUCCESS, 14193

or

FAIL, 17849

I need to examine this text that is returned so I can direct the user to a success.htm page or a fail.htm page.

I am using Dreamweaver and need to intercept this text returned from the script and then direct to the right page.

I cannot find out how to read in the text returned. Can anyone help me please.

oracleguy
05-15-2003, 12:49 AM
Well, what language are you using?

ultrassl
05-15-2003, 12:57 AM
The script I call is called partner.do
I don't know what language it is in. I use a form POST to send information to it. All I know is that it returns the success or fail parameters as plain text. I want to capture this plain text. If I have to write a script to capture and process it then I guess I would write it in PERL.
I have to admit that I haven't really got a clue:o