<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://m204wiki.rocketsoftware.com/index.php?action=history&amp;feed=atom&amp;title=%24Web_Form_Parm_Binary</id>
	<title>$Web Form Parm Binary - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://m204wiki.rocketsoftware.com/index.php?action=history&amp;feed=atom&amp;title=%24Web_Form_Parm_Binary"/>
	<link rel="alternate" type="text/html" href="https://m204wiki.rocketsoftware.com/index.php?title=$Web_Form_Parm_Binary&amp;action=history"/>
	<updated>2026-05-03T05:57:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://m204wiki.rocketsoftware.com/index.php?title=$Web_Form_Parm_Binary&amp;diff=117955&amp;oldid=prev</id>
		<title>Alex: Created page with &quot;{{DISPLAYTITLE:$Web_Form_Parm_Binary}} &lt;span class=&quot;pageSubtitle&quot;&gt;Value of form field to longstring&lt;/span&gt;  &lt;var&gt;$Web_Form_Parm_Binary&lt;/var&gt; retrieves the value of an HTML for...&quot;</title>
		<link rel="alternate" type="text/html" href="https://m204wiki.rocketsoftware.com/index.php?title=$Web_Form_Parm_Binary&amp;diff=117955&amp;oldid=prev"/>
		<updated>2020-02-20T02:09:37Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{DISPLAYTITLE:$Web_Form_Parm_Binary}} &amp;lt;span class=&amp;quot;pageSubtitle&amp;quot;&amp;gt;Value of form field to longstring&amp;lt;/span&amp;gt;  &amp;lt;var&amp;gt;$Web_Form_Parm_Binary&amp;lt;/var&amp;gt; retrieves the value of an HTML for...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:$Web_Form_Parm_Binary}}&lt;br /&gt;
&amp;lt;span class=&amp;quot;pageSubtitle&amp;quot;&amp;gt;Value of form field to longstring&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;var&amp;gt;$Web_Form_Parm_Binary&amp;lt;/var&amp;gt; retrieves the value of an HTML form field as a [[Longstrings|longstring]]. Unlike [[$Web_Form_Parm_Lstr]], it returns the value of the form parameter, exactly as sent by the client, rather than translated to ASCII.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;var&amp;gt;$Web_Form_Parm_Binary&amp;lt;/var&amp;gt; takes two arguments and returns a longstring or null for any error condition.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;p class=&amp;quot;syntax&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;term&amp;quot;&amp;gt;%string&amp;lt;/span&amp;gt; = &amp;lt;span class=&amp;quot;literal&amp;quot;&amp;gt;$Web_Form_Parm_Binary&amp;lt;/span&amp;gt;( &amp;lt;span class=&amp;quot;term&amp;quot;&amp;gt;name&amp;lt;/span&amp;gt;, [&amp;lt;span class=&amp;quot;term&amp;quot;&amp;gt;occurrence&amp;lt;/span&amp;gt;] )&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Syntax terms===&lt;br /&gt;
&amp;lt;table class=&amp;quot;syntaxTable&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;name&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;The name of the form field, returned by &amp;lt;var&amp;gt;$Web_Form_Name&amp;lt;/var&amp;gt;. Required argument if occurrence is not specified, otherwise optional.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;occurrence&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;The occurrence number of a form field, or the occurrence number of the form field matching &amp;#039;&amp;#039;name&amp;#039;&amp;#039;, if &amp;#039;&amp;#039;name&amp;#039;&amp;#039; is specified. This is an optional argument if &amp;#039;&amp;#039;name&amp;#039;&amp;#039; is specified; otherwise it is required.&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Usage notes==&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The most likely use for &amp;lt;var&amp;gt;$Web_Form_Parm_Binary&amp;lt;/var&amp;gt; is to access the value of form fields with contents that are UTF-8 rather than plain ASCII and so are not amenable to simple ASCII to EBCDIC translation. As such, a common uasge for &amp;lt;var&amp;gt;$Web_Form_Parm_Binary&amp;lt;/var&amp;gt; is to apply the [[Utf8ToUnicode (String function)|Utf8ToUnicode]] function against its result:&lt;br /&gt;
&amp;lt;p class=&amp;quot;code&amp;quot;&amp;gt;%unicode    is unicode&lt;br /&gt;
 ...&lt;br /&gt;
%unicode = $web_form_parm_binary(&amp;quot;XML&amp;quot;):Utf8ToUnicode&lt;br /&gt;
&amp;lt;/p&amp;gt;&amp;lt;/li&amp;gt; &lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
If you have an HTML form defined as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;code&amp;quot;&amp;gt; &amp;lt;form method=&amp;quot;POST&amp;quot; action=&amp;quot;myUrl&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;amp;lt;br&amp;gt;Foo:&amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;foo&amp;quot; size=&amp;quot;20&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;amp;lt;br&amp;gt;Bar:&amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;bar&amp;quot; size=&amp;quot;20&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;amp;lt;br&amp;gt;&amp;lt;input type=&amp;quot;submit&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following will retrieve the values of the &amp;lt;code&amp;gt;Foo&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Bar&amp;lt;/code&amp;gt; fields into unicode strings called &amp;lt;code&amp;gt;%foo&amp;lt;/code&amp;gt; and&amp;lt;code&amp;gt;%bar&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;code&amp;quot;&amp;gt;%foo = $web_form_parm_lstr(&amp;#039;FOO&amp;#039;):utf8ToUnicode&lt;br /&gt;
%bar = $web_form_parm_lstr(&amp;#039;BAR&amp;#039;):utf8ToUnicode&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;var&amp;gt;[[$Web_Form_Parm]]&amp;lt;/var&amp;gt; &lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;var&amp;gt;[[$Web_Form_Name]]&amp;lt;/var&amp;gt; &lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;var&amp;gt;[[$Web_Form_Parm_Line]]&amp;lt;/var&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;var&amp;gt;[[$Web_Form_Parm_Lstr]]&amp;lt;/var&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Janus Web Server $functions|$Web_Form_Parm_Binary]]&lt;/div&gt;</summary>
		<author><name>Alex</name></author>
	</entry>
</feed>