Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
Alright. I noticed my last post didn't show (probably because I had a URL in it), but I figured it out. Manual Opt-ins get two iframes on the same page, each opting them in to my list and the ppl program (four actually - I also load the two landing pages so the information is set in their browser, then load the iframes). For my automated friends, before their account is created I put LWP::UserAgen and HTTP::Request to some good use and fetched the URL contents first. Looks like this
use LWP::UserAgent; use HTTP::Request; my $ppd = 'script post url with all the variables'; my $aweber = 'script post url with all the variables'; &do_ppd; &do_aweber; &do_register; sub do_ppd { my $agent = LWP::UserAgent->new(env_proxy => 1,keep_alive => 1, timeou +t => 30); my $header = HTTP::Request->new(GET => $ppd); my $request = HTTP::Request->new('GET', $ppd, $header); my $response = $agent->request($request); # Check response if ($response->is_success){ print "url:$url\nHeaders:\n"; print $response->headers_as_string; print "\nContent:\n"; print $response->as_string; }elsif ($response->is_error){ print "Error:$url\n"; print $response->error_as_HTML; } } sub do_aweber { my $agent = LWP::UserAgent->new(env_proxy => 1,keep_alive => 1, timeou +t => 30); my $header = HTTP::Request->new(GET => $aweber); my $request = HTTP::Request->new('GET', $aweber, $header); my $response = $agent->request($request); # Check response if ($response->is_success){ print "url:$url\nHeaders:\n"; print $response->headers_as_string; print "\nContent:\n"; print $response->as_string; }elsif ($response->is_error){ print "Error:$url\n"; print $response->error_as_HTML; } } sub do_register { #see if user exists #see if email is valid and doesn't already exist #mysql insert }
Firing order :) Thank you for your input on shortening the process. I really wanted to make the process to do all three steps with only filling out one from. Most people who go hunting for free stuff like marketing seldom actually complete any process. This way I get paid whether they do or not.

In reply to Re^2: set REMOTE_ADDR to sendmail? by techdex
in thread set REMOTE_ADDR to sendmail? by techdex

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others meditating upon the Monastery: (5)
    As of 2014-12-20 10:54 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      Is guessing a good strategy for surviving in the IT business?





      Results (95 votes), past polls