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

Discussion in 'Perl' started by Jason Miles, May 27, 2004.

  1. Jason Miles

    Jason Miles Guest

    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!
     
    Jason Miles, May 27, 2004
    #1
    1. Advertisements

  2. 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
     
    Jürgen Exner, May 28, 2004
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Peter Rilling

    Array to a comma Separated String

    Peter Rilling, Jul 8, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    639
  2. DrLovely@.
    Replies:
    7
    Views:
    691
    DrLovely@.
    Mar 25, 2005
  3. RogerTBrick
    Replies:
    3
    Views:
    4,540
    RogerTBrick
    Mar 7, 2005
  4. =?Utf-8?B?Q2hyaXMgTGFuZQ==?=

    How to stream a comma separated string to the browser?

    =?Utf-8?B?Q2hyaXMgTGFuZQ==?=, Jul 21, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    465
    =?Utf-8?B?Q2hyaXMgTGFuZQ==?=
    Jul 21, 2006
  5. ronan_40060

    Parsing a Comma Separated String in C

    ronan_40060, Sep 6, 2006, in forum: C Programming
    Replies:
    1
    Views:
    3,384
    Rudresh R kaddipudi
    Dec 22, 2006
  6. mac
    Replies:
    17
    Views:
    796
    CBFalconer
    Feb 14, 2007
  7. Nishanth
    Replies:
    10
    Views:
    959
    David Harmon
    Jul 4, 2006
  8. Yakov
    Replies:
    2
    Views:
    223
    Yakov
    May 12, 2007
Loading...