Display a variable in a html form

Hi,

In a web form I’d like to display a variable. The following line displays a static number (30) but I need to display the variable x. How is it done?

TIA

client.println("<td><input name='alMinutes-' type=\"text\" value=\"30\" maxlength=\"2\"></td>");//displays the number 30

----

String x = "30";


client.println("<td><input name='alMinutes-' type=\"text\" value=\"x\" maxlength=\"2\"></td>");
client.print("<td><input name='alMinutes-' type=\"text\" value=\"");
client.print(x);
client.println("\" maxlength=\"2\"></td>");
client.print(F("<td><input name='alMinutes-' type=\"text\" value=\""));
client.print(x);
client.println(F("\" maxlength=\"2\"></td>"));

Thank you both for the quick response.

One last question, what’s the F for?

The F() macro keeps constant strings in flash memory, and prevents them from wasting RAM

and prevents them from wasting RAM

Of course, since you are pissing memory away using the String class, using the F() macro isn't really going to prove all that useful.

But, in this snippet, we're not using String anymore.

AWOL:
But, in this snippet, we're not using String anymore.

Where did x change type? Did I miss something?