Click here to get back home

text fields in a form

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
text fields in a form Powercat 02-11-2007
Get Chitika Premium
Posted by Powercat on February 11, 2007, 2:33 pm
Please log in for more thread options


Thanks in advance for any solutions to my query.

My users log into a site with their domain e-mail (someone@domain.com)
and password. I'd like to tweak the form so that the @domain.com
portion will already be included. I can do this easily using a
value="domain.com" following the text input tags but then that
variable shows up in the text box. I'd rather that value (domain.com)
be hidden and I can't figure out how. A minor point you say, yes, but
one I'd like to fix.

In other words, the user types his/her userID "someone" and the form
appends "@domain" to yield "someone@domain.com" and the form submits
that.


Posted by Chris F.A. Johnson on February 11, 2007, 3:23 pm
Please log in for more thread options


On 2007-02-11, Powercat wrote:
> Thanks in advance for any solutions to my query.
>
> My users log into a site with their domain e-mail (someone@domain.com)
> and password. I'd like to tweak the form so that the @domain.com
> portion will already be included. I can do this easily using a
> value="domain.com" following the text input tags but then that
> variable shows up in the text box. I'd rather that value (domain.com)
> be hidden and I can't figure out how. A minor point you say, yes, but
> one I'd like to fix.
>
> In other words, the user types his/her userID "someone" and the form
> appends "@domain" to yield "someone@domain.com" and the form submits
> that.

Why have the form do it if you don't want the use to see it?? The
form should submit "someone", and the script that process it can
add "@domain.com" if it is not already there.

--
Chris F.A. Johnson <http://cfaj.freeshell.org>
===================================================================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)

Similar ThreadsPosted
form fields and no-cache July 22, 2004, 11:10 pm
HTML Form "Lookup" Fields May 8, 2005, 4:23 am
What happens if several text fields have the same name? May 24, 2005, 10:00 am
anyway to programatically disable autocomplete for Firefox and IE for specific form fields? July 25, 2007, 8:08 pm
Is there a way to change the color of the text fields in html? March 9, 2006, 11:51 am
Pre-populating a Text Box in a form November 7, 2004, 2:20 am
text/plain form enctype September 22, 2005, 6:28 am
text/plain form enctype September 22, 2005, 7:00 am
mailto: form using GET. Cannot get spaces in text. March 29, 2007, 6:16 am
can a textarea on a form be used to cast text to a specific charset like UTF-16? August 11, 2004, 9:38 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap