adding text to variable

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • J.

    adding text to variable

    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.co m' 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?
  • Ian.H

    #2
    Re: adding text to variable

    On Wed, 15 Oct 2003 19:16:30 -0700, J. wrote:
    [color=blue]
    > 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.co m' 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?[/color]


    $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.ne t | forum.digiserv. net
    Programming, Web design, development & hosting.

    Comment

    Working...