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

adding text to variable

P: n/a
J.
I have an email login screen that sends the username and password to
an authentication screen. I designate the username with the name of
the input, i.e. <input type="text" name="username"> with 'user'
entered sends $username=user to the php authentication page. The
problem is, to log in, users have to enter 'user+domain.com' in the
user name (ISP requirement). Is there a php script I can add to the
login page so that a user can just type their user name and the code
will automatically add '+domain.com' to the end of it and send it as
$username=user+domain.com?
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Wed, 15 Oct 2003 19:16:30 -0700, J. wrote:
I have an email login screen that sends the username and password to an
authentication screen. I designate the username with the name of the
input, i.e. <input type="text" name="username"> with 'user' entered sends
$username=user to the php authentication page. The problem is, to log in,
users have to enter 'user+domain.com' in the user name (ISP requirement).
Is there a php script I can add to the login page so that a user can just
type their user name and the code will automatically add '+domain.com' to
the end of it and send it as $username=user+domain.com?

$domain = 'foo.com';
$username .= $domain;
The '.=' operator appends the latter to the former.
HTH =)

Regards,

Ian

--
Ian.H [Design & Development]
digiServ Network - Web solutions
www.digiserv.net | irc.digiserv.net | forum.digiserv.net
Programming, Web design, development & hosting.

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.