how to format data in LC for posting them to a PHP script?
Alex Tweedly
alex at tweedly.net
Sun Jul 6 12:18:39 EDT 2025
Should it not be. &pw=PWD& In the middle of that reply?
Alex
Sent from my iPhone
> On 6 Jul 2025, at 16:30, Klaus major-k via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> 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
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list