how to format data in LC for posting them to a PHP script?
Klaus major-k
klaus at major-k.de
Sun Jul 6 11:29:24 EDT 2025
Hi jbv,
> Am 06.07.2025 um 17:24 schrieb jbv via use-livecode <use-livecode at lists.runrev.com>:
>
> Hi Klaus,
>
> This should work :
>
> put "ben=USER&password=PWD&sprach=de" into tData
> post urlencode(tData) to URL "http://XXX/XXXXX.php"
ah, yes the &, that was it, thank you, will try that! :-)
> jbv
>
>
> Le 2025-07-06 10:17, Klaus major-k via use-livecode a écrit :
>> Hi friends,
>> quick question, how to format the data in LC for posting them to a PHP script like this?
>> This is the html code from the webpage:
>> ...
>> <form action = "XXXXX.php" method = "post">
>> <p><input name="ben" maxlength="15" /> Benutzer</p>
>> <p><input type="password" name="pw" maxlength="15" /> Password</p>
>> <input type='hidden' name='sprach' value='de'
>> ...
>> Like this?
>> ...
>> put "ben=USER;password=PWD;sprach=de" into tData
>> ## ?
>> post tData to "http://XXX/XXXXX.php"
>> put the result
>> ...
>> ?
>> Thank you!
Best
Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
klaus at major-k.de
More information about the use-livecode
mailing list