473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

adding text to variable

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
1 15170
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: aprim | last post by:
Hi, I have a text variable $var1 = "abcdef" how I can make $var2= "abc" and $var3 ="def" using caracter count like mid$(var,x,y) in visual basic ? thanks
32
by: Ed Jay | last post by:
A complete js newbie is asking this question: I have a form comprised of several questions, each answered with a radio button. I'd like to use onClick to bring up additional text at the end of...
3
by: PawelSokolowski | last post by:
Hi all, I have just switched from VC++ 6.0 to .NET and I am a bit confused. I am very upset that Class Wizard is gone. I am trying to add member variables to my dialog class. When I add control...
0
by: Dave | last post by:
Hi , I have the following where I need to append a string variable inside a hyperlink template, inside a datalist. The variable 'categoryList' is the culprit. No matter where this variable is...
6
by: monomaniac21 | last post by:
Hi all Is there a way to insert text into a mysql text field that already has text into it; without having first to extract the existing data and append the new text to that string variable and...
0
by: Marv | last post by:
Let's say you have a hash of hashes and you access one of its values like this print "$myhash->{ParentKey}->{ChildKey}"; and that actually prints: myValue But now, you want to store the...
3
by: Metalzed | last post by:
Hi I want to have a log so in my table i got a TEXT field called LOGG. I want to update this field with new data by adding more text to field. I am using MS SQL 'test' + 'test' doesn't...
5
by: Alex Dransfield | last post by:
I am trying to add text to a shape but I can't figure out how to do it.. I am using the method public void DrawOnDoc(object oMissing, Microsoft.Office.Interop.Word._Document oDoc) { ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.