Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > How to format $mail_from with 2 variables separated by a comma?

Reply
Thread Tools

How to format $mail_from with 2 variables separated by a comma?

 
 
Jason Miles
Guest
Posts: n/a
 
      05-27-2004
I have a script which is processing form input. What I want is when the
script sends an e-mail with the form contents, the From field in the e-mail
should be
last_name,first_name

The code i'm running currently produces
last_name;first_name

Here is the line of code I'm using
$mail_from = $query->param("family_name").",".$query->param("given_name");

I've also tried
$mail_from = $query->param("family_name").','.$query->param("given_name");

Can someone tell me what to change to get the desired result of
last_name,first_name ?

Thanks in advance!


 
Reply With Quote
 
 
 
 
Jürgen Exner
Guest
Posts: n/a
 
      05-28-2004
Jason Miles wrote:
> I have a script which is processing form input. What I want is when
> the script sends an e-mail with the form contents, the From field in
> the e-mail should be
> last_name,first_name
>
> The code i'm running currently produces
> last_name;first_name


s/;/,/;
should do the job

jue


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Put variables into member variables or function variables? tjumail@gmail.com C++ 9 03-23-2008 04:03 PM
multiline CSV records (comma-separated values format) Yakov Perl Misc 2 05-12-2007 10:39 PM
COM object that has been separated from its underlying RCW can not be used. Rahul T. ASP .Net 3 12-03-2004 12:24 AM
Separated DLLs for user controls A.M ASP .Net 3 02-18-2004 04:15 AM
Codebehind classes in a DLL separated from the ASPXs, good or bad? BH ASP .Net 0 07-30-2003 03:47 PM



Advertisments