Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Quick PHP code question... WordPress

  • SOLVED

Have site at AgouraHills411.com

In the box on Uper right, I want the code THERE changed to now work with new VerticalResponse code. HERE is the code on ENTER YOUR EMAIL box on AgouraHills411.com...

<div class="subscribe clearfix">

<h3> <a href="http://50.22.71.94/~ritsproj/agourahills411/?feed=rss"><img class="i_rss" alt="" src="http://50.22.71.94/~ritsproj/agourahills411/wp-content/themes/GeoPlaces/images/i_rss.png"> </a> </h3>

<form name="ccoptin" action="http://visitor.r20.constantcontact.com/d.jsp" action="http://feedburner.google.com/fb/a/mailverify" target="_blank" method="post" class="subscribe_form"> <input type="hidden" name="llr" value="ghsmr4eab">
<input type="hidden" name="m" value="1104865020134">
<input type="hidden" name="p" value="oi">
<p>Your Email</p>
<input type="text" value="" name="email" class="field">

<input type="hidden" name="uri" value=""><input type="hidden" value="en_US" name="loc">

<input type="submit" name="go" value="Go" class="btn_submit" >

</form>
</div>


AND HERE IS THE NEW VERTICAL RESPONSE CODE, as you will find in the preformatted side widget located on the MIDDLE RIGHT of the page. Im looking to use the new 'guts' of the new code in the box on TOP RIGHT of homepage. I dont want the style of the TOP RIGHT box to change. Thanks !

<form method="post" action="http://oi.vresp.com?fid=f630be0279" target="vr_optin_popup" onsubmit="window.open( 'http://www.verticalresponse.com', 'vr_optin_popup', 'scrollbars=yes,width=600,height=450' ); return true;" >

<div style="font-family: verdana; font-size: 11px; width: 280px; padding: 10px; border: 1px solid #000000; background: #dddddd;">
<strong><span style="color: #333333;">Sign Up for our Weekly email of current discounts and promotions in Agoura Hills! </span></strong>
<p style="text-align: right; margin-top: 10px; margin-bottom: 10px;"><span style="color: #f00;">* </span><span style="color: #333333">required</span></p>
<label style="color: #333333;">Email Address:</label> <span style="color: #f00">* </span>
<br/>
<input name="email_address" size="15" style="margin-top: 5px; margin-bottom: 5px; border: 1px solid #999; padding: 3px;"/>
<br/>
<input type="submit" value="Join Now" style="margin-top: 5px; border: 1px solid #999; padding: 3px;"/><br/>
<br/><span style="color: #333333"><a href="http://www.verticalresponse.com" title="Email Newsletter by VerticalResponse">Email Newsletter</a> by VerticalResponse</span>
</div>
</form>


AS SHOW IN SIGN UP BOX ON HOME PAGE.

Thanks!

Answers (3)

2011-04-14

Christianto answers:

I'm not sure if this is what you mean, but please try

<form name="ccoptin" action="http://visitor.r20.constantcontact.com/d.jsp" action="http://feedburner.google.com/fb/a/mailverify" target="_blank" method="post" >

<input type="hidden" name="llr" value="ghsmr4eab">

<input type="hidden" name="m" value="1104865020134">

<input type="hidden" name="p" value="oi">

<input type="hidden" name="uri" value=""><input type="hidden" value="en_US" name="loc">

<div style="font-family: verdana; font-size: 11px; width: 280px; padding: 10px; border: 1px solid #000000; background: #dddddd;">

<span style="color: #333333;">Sign Up for our Weekly email of current discounts and promotions in Agoura Hills! </span>

<p style="text-align: right; margin-top: 10px; margin-bottom: 10px;"><span style="color: #f00;">* </span><span style="color: #333333">required</span></p>

<label style="color: #333333;">Email Address:</label> <span style="color: #f00">* </span>

<br/>

<input name="email" size="15" style="margin-top: 5px; margin-bottom: 5px; border: 1px solid #999; padding: 3px;"/>

<br/>

<input type="submit" name="go" value="Go" style="margin-top: 5px; border: 1px solid #999; padding: 3px;"/><br/>

<br/><span style="color: #333333"><a href="http://www.verticalresponse.com" title="Email Newsletter by VerticalResponse">Email Newsletter</a> by VerticalResponse</span>

</div>

</form>


Christianto comments:

Little confuse with 2 form action attribute, Did your subscription form is using javascript to submit from or using any js function? I don't see any event listener on your submit button...


Christianto comments:

And I looked source code at your site it only required one action attribute, so the code would be

<form name="ccoptin" action="http://visitor.r20.constantcontact.com/d.jsp" target="_blank" method="post" >

<input type="hidden" name="llr" value="ghsmr4eab">

<input type="hidden" name="m" value="1104865020134">

<input type="hidden" name="p" value="oi">

<input type="hidden" name="uri" value=""><input type="hidden" value="en_US" name="loc">

<div style="font-family: verdana; font-size: 11px; width: 280px; padding: 10px; border: 1px solid #000000; background: #dddddd;">

<span style="color: #333333;">Sign Up for our Weekly email of current discounts and promotions in Agoura Hills! </span>

<p style="text-align: right; margin-top: 10px; margin-bottom: 10px;"><span style="color: #f00;">* </span><span style="color: #333333">required</span></p>

<label style="color: #333333;">Email Address:</label> <span style="color: #f00">* </span>

<br/>

<input name="email" size="15" style="margin-top: 5px; margin-bottom: 5px; border: 1px solid #999; padding: 3px;"/>

<br/>

<input type="submit" name="go" value="Go" style="margin-top: 5px; border: 1px solid #999; padding: 3px;"/><br/>

<br/><span style="color: #333333"><a href="http://www.verticalresponse.com" title="Email Newsletter by VerticalResponse">Email Newsletter</a> by VerticalResponse</span>

</div>

</form>


Christianto comments:

One more question, Did your code on 'ENTER YOUR EMAIL' box is generate with php (from plugin) ?

If this generate dynamically, the value of llr, r, p, uri, loc hidden value can be different...

Hope this help


Vince Curtis comments:

Christianto- thanks for the try, but it show the VR box, not the original box, as I would like. See attached. Im sorry I dont know the answers to your questions, but both sets of code is in a TEXT widget in my WordPress theme. Thanks