By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,846 Members | 1,836 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,846 IT Pros & Developers. It's quick & easy.

text fields in a form

P: n/a
Thanks in advance for any solutions to my query.

My users log into a site with their domain e-mail (so*****@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 "so*****@domain.com" and the form submits
that.

Feb 11 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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 (so*****@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 "so*****@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)
Feb 11 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.