now, the init() method of my JApplet class contains a line
String name = getParameter("name");
Here is the problem:
only the first name gets passed to the java variable. I tried with different strings, always the passed info stops with the first space. I tried using a string literal in my php echo statement, instead of the variable $name, and everything works fine. I edit the assignment statement for $name to remove the space, and FredHamilton gets passed.
Note that in my php script I can echo the contents of the variable to the same page that my applet code is being echoed to, and it works, so clearly it is in the passing of the variable to a java String object using param tag and getParameter that causes the string to get truncated at the first space.
Paul Clapham wrote:Yeah. Wasn't quoting the attribute, right?
You are correct. It is interesting that it only became a noticeable problem when the contents of the php variable contained a space. I'm not certain what that is all about. I suppose HTML only requires double quotes around the text value when it contains spaces, but it does mean that there must have been extraneous material within the param tags that did not seem to interfere with the function of the tags, get my drift?