Guest screenman Report post Posted 03/18/2003 08:06 PM Hello, A user must enter his phonenumber ( $RV[user_phone] ) and zip code ( $RV[user_zip] ) when i want to do a http get ( with iexplorer, http://localhost/script.php?phone=???&zip=??? ) What do i get ? http://localhost/script.php?phone=0123456&zip=8000 or do it get http://localhost/script.php?phone=[user_ph...user_zip]{8000} ?? Share this post Link to post
SupportTeam Report post Posted 03/19/2003 01:25 AM After the caller has entered their phone number in a get numbers module called user_phone and they have entered their zip code number in a get numbers module called user_zip then you will be able to use the following two Result Variables in your script: $RV[user_phone] $RV[user_zip] so if you specify your HTTP get statement like this: http://localhost/script.php?phone=$RV[user_phone]&zip=$RV[user_zip] Then VoiceGuide before running it will replace the Result Variables with the values entered by caller. So if the caller has entered 0123456 in module user_phone and 8000 in module user_zip then the resulting HTTP get string after replacing the Result Variables will be: http://localhost/script.php?phone=0123456&zip=8000 (How are you using the HHTP Get? are you using it within a Run VBScript module or somewhere else?) Share this post Link to post
Guest screenman Report post Posted 03/20/2003 11:36 PM i don't know vbscript Share this post Link to post
SupportTeam Report post Posted 03/23/2003 01:00 AM There is an example of HTTP GET using VB Script in the VoiceGuide Help file - please see the section on "Run VB SCript" module. This example is also used in a supplied Demo script - the one which retrieves the Dow Jones/Nasdaq/S&P500 indices from finance.yahoo.com and plays their current values back to the caller. You can use these examples as a starting point... What other approach were you considering to do the HTTP GET? you can probably start up iexplorer.exe using the Run Program module with the "http://localhost/script.php?phone=$RV[user_phone]&zip=$RV[user_zip]" as a parameter - but closing that window afterwards will be tricky... Share this post Link to post