Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding something to the end of a string ??? 1

Status
Not open for further replies.
Feb 16, 2003
87
GB
Hello!

I need to be able to add something to the end of a string in an If . . .then statment:

So: If 'regtype' equals 'new' then add ',17' to the end of the $query2 string:

if ($FORM{'regtype'} eq "new") {

#$query2 .= "&service=14"
CODE GOES HERE!!!

}

Hope that makes sense! $query2 can be a number of different things that's why I can hard code it.

Simon
 
If I understand your question correctly then this will work,

$query2 .= ",17";

Ryan
 
What a fool! of course!

Thanks - I can't believe I didn't get that!

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top