Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Submit string ???
Message
 
 
À
16/03/2005 12:04:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP3
Database:
Visual FoxPro
Divers
Thread ID:
00996405
Message ID:
00996436
Vues:
11
This message has been marked as the solution to the initial question of the thread.
Try
TEXT TO lcStrEn NOSHOW TEXTMERGE
MyField%3DAAAAAAAAAA%26S1%3DBBBBBBBBBB%250D%250ABBBBBBBBBB%250D%250ABBBBBBBBBB%26D1%3DCCCCCCCC%26B1%3DSubmit%00
ENDTEXT

lcStr = CHRTRAN(UrlDecode(UrlDecode(lcStrEn)), CHR(0), "")

ALINES(laList, lcSTR, "&") 
FOR i=1 TO ALEN(laList)
	lcVarName = STREXTRACT(laList[i], "", "=")
	lcVarVal  = STREXTRACT(laList[i], "=", "")
	? lcVarName, "=", lcVarVal
ENDFOR
The UrlDecode function is from Re: How to escape a string for html in VFP8 Message #774940

>A submit on
>web browser control with form elements returns
>
>
>MyField%3DAAAAAAAAAA%26S1%3DBBBBBBBBBB%250D%250ABBBBBBBBBB%250D%250ABBBBBBBBBB%26D1%3DCCCCCCCC%26B1%3DSubmit%00
>
>how can I extract the fieldnames and their content
>
>myfield = "AAAAAAAAAA"
>S1 = "BBBBBBBBBB"+LF+LF+"BBBBBBBBBB"+LF+LF+"BBBBBBBBBB"
>D1 = "CCCCCCCC"
>
>Thanks
>Peter
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform