Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Email opt-in HTML form error - Mailinglist Subscriptions


Guest

Recommended Posts

I keep my mailinglist with a third party (VerticalResponse) and the forms used to attract new subscribers ain't exactly OSC friendly. Why? They're HTML....

 

Now I do know the form needs to be translated to tep_ osc and that's where my brain shuts down. It's like arameic. Help! How do I do this?

 

<form method="post" action="http://oi.vresp.com?fid=b1f871f6f9" 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: 160px; padding: 10px; border: 1px solid #FFCCF8; background: #FFCCF8">
<strong><span style="color: #47424A;">Prenumerera på vårt nyhetsbrev!</span></strong><br/><br/>
<label style="color: #47424A;">Email Adress:</label><br/>
<input name="email_address" size="15" style="margin-top: 5px; border: 1px solid #999; padding: 3px;"/><br/>
<input type="submit" value="Ja tack!" style="margin-top: 5px; border: 1px solid #999; padding: 3px;"/>
 </div>
</form>

 

XoXo,

Jess

Link to comment
Share on other sites

  • 2 months later...

It doesn't HAVE to be translated to PHP, depending on where you want to insert the code.

 

If you put it in a HTML section of the code it requires no translation, just copy/paste it in.

 

You could try:

 

echo '<form method="post" action="http://oi.vresp.com?fid=b1f871f6f9" 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: 160px; padding: 10px; border: 1px solid #FFCCF8; background: #FFCCF8">
<strong><span style="color: #47424A;">Prenumerera på vårt nyhetsbrev!</span></strong><br/><br/>
<label style="color: #47424A;">Email Adress:</label><br/>
<input name="email_address" size="15" style="margin-top: 5px; border: 1px solid #999; padding: 3px;"/><br/>
<input type="submit" value="Ja tack!" style="margin-top: 5px; border: 1px solid #999; padding: 3px;"/>
 </div>
</form>';

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...