
I'm a bit confused [as always]. On the Member List page, all of the @signs that appear [e.g., in all the email addresses] are HTML encoded: The member "jojo@newhost.com" ends up in the FORM for the list as <INPUT name="jojo%40newhost.com_realname" type="TEXT" value="jojojo" size="22" >
<INPUT name="user" type="HIDDEN" value="jojo%40newhost.com" >
I see in web developer, that the fields are apparently submitted just that way: -----------------------------265001916915724 Content-Disposition: form-data; name="jojo%40newhost.com_realname"
jojojo -----------------------------265001916915724 Content-Disposition: form-data; name="user"
jojo%40newhost.com -----------------------------265001916915724
But I can't get my dumb program to update the member list [e.g., to turn on a 'mod' checkbox]. I'm busy debugging but I'm wondering: when my program submits the form fields, should it use the %40 form, or convert the fields back to @signs? [At the moment I can't get it to work either way but I'd like to know which is correct]. Thanks!!
/Bernie
Bernie Cosell
bernie@fantasyfarm.com
-- Too many people; too few sheep --

On 08/09/2018 09:09 AM, Bernie Cosell wrote:
I'm a bit confused [as always]. On the Member List page, all of the @signs that appear [e.g., in all the email addresses] are HTML encoded: The member "jojo@newhost.com" ends up in the FORM for the list as <INPUT name="jojo%40newhost.com_realname" type="TEXT" value="jojojo" size="22" >
<INPUT name="user" type="HIDDEN" value="jojo%40newhost.com" >
It's not really relevant to your question, but encoding @ as %40 is called URL encoding, not HTML encoding. Sometimes, characters, especially non-ascii but also some ascii) are encoded in HTML as HTML entities which for @ would be @ or @.
But I can't get my dumb program to update the member list [e.g., to turn on a 'mod' checkbox]. I'm busy debugging but I'm wondering: when my program submits the form fields, should it use the %40 form, or convert the fields back to @signs? [At the moment I can't get it to work either way but I'd like to know which is correct]. Thanks!!
It shouldn't matter for ascii characters such as @. See, e.g. https://www.w3schools.com/tags/ref_urlencode.asp.
Except, it is possible that your program url encodes the data it's given in which case it might turn %40 into %2540, and that won't work.
participants (2)
-
Bernie Cosell
-
Mark Sapiro