Announcement

Collapse
No announcement yet.

Perl script (mailform.pl extra info please)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Perl script (mailform.pl extra info please)

    There is a bit of code that i wish to modify and im sure its [B]simple[/B


    $sTextMailBody .= "Telephone: " . $::g_InputHash{'Telephone'} . "\r\n";
    $sTextMailBody .= "Outter Diameter: " . $::g_InputHash{'OD1'} . "\r\n";
    $sTextMailBody .= "*point*: " . $::g_InputHash{'OD2'} . "\r\n";
    $sTextMailBody .= "Height: " . $::g_InputHash{'H1'} . "\r\n";
    $sTextMailBody .= "*point*: " . $::g_InputHash{'H2'} . "\r\n";
    bassically it is the email to merchant setting and two number are recieved from the contact us page, and i want them to appear next to each other in the email at the moment they appear


    Outter Diameter: 5
    *point*:34
    Height: 6
    *point*:28

    for example what i want to happen is

    Outter Diameter: 5.34
    Height: 6.28

    any help please
    www.polymax.co.uk/acatalog/ number 1 for for o-rings, rubber seals, rubber cords. In Viton NBR and silicone.
    Cuddle And Carry, Baby Slings Wraps Ringslings Pouches and Carriers
    http://www.oringen.eu/ O-Ringen Rubber Koord Uitegdreven Profielen in Nitrile (NBR) Viton.

    #2
    "\r\n" is what moves down a line (CR) etc.

    Comment


      #3
      so in theory i would just remove it, but when i try this the whole contact us page crashes and can not be found
      www.polymax.co.uk/acatalog/ number 1 for for o-rings, rubber seals, rubber cords. In Viton NBR and silicone.
      Cuddle And Carry, Baby Slings Wraps Ringslings Pouches and Carriers
      http://www.oringen.eu/ O-Ringen Rubber Koord Uitegdreven Profielen in Nitrile (NBR) Viton.

      Comment


        #4
        hmmmmmmmmmmmmmm. ok

        $sTextMailBody .= "*point*: " . $::g_InputHash{'OD2'} . "\r\n";
        $sTextMailBody .= "Height: " . $::g_InputHash{'H1'} . "\r\n";

        into one, I tink is:

        $sTextMailBody .= "*point*: " . $::g_InputHash{'OD2'} . "Height: " . $::g_InputHash{'H1'} . "\r\n";

        Comment


          #5
          appended to that...

          idea is not to just remove the ending of the line, but connect all the bits in the middle, making sure we only have 1 ending of \r\n etc etc (I thinks )

          Comment

          Working...
          X