another PHP-Revlet question

Dave Cragg dave.cragg at lacscentre.co.uk
Sat Aug 29 16:23:22 EDT 2009


On 29 Aug 2009, at 19:55, Yves COPPE wrote:
>
> for a php command, I use
>
>   put "myVar=" & urlEncode(fld "myFld") &"&adresse=" &  
> urlEncode(tadresse) into myString
>   post myString to URL "http://www.mondomaine.com/codefile.php"
>
> for a function I write
>
> put "http://www.mondomaine.com/myfunctionfile.php" into tURL
> put URL("File:"&tURL) into myNewVar
>
>
> but
>
> now I have to post a var to a function and recover the result of the  
> PHP function !
>
> so I have to mix something between a post or a put

Is this what you want?

put "myVar=" & urlEncode(fld "myFld") &"&adresse=" &  
urlEncode(tadresse) into myString
post myString to URL "http://www.mondomaine.com/codefile.php"
put it into myNewVar

Cheers
Dave


More information about the use-livecode mailing list