Jump to content

Recommended Posts

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]I have installed a newsletter script. The problem is, my Home page template for the newsletter has different functions than the newsletter's HTML that the software produces for the signup.

The newsletter has a text box for the email, a button to subscribe, a button to desubscribe, and a submit button. My home page has a text box, a button that submits and subscribes all in one, and a button that desubscribes.

Also the buttons for my templates are .gifs.

The question is, how do I integrate the newsletters input wiht what I already have.

Here is the newsletters HTML code:

[/quote]

[code]
<form name="" method="post" action="http://www.mysite.com/12all_Z/box.php">
<table width="212" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="75"><div align="right">E-mail</div></td>
<td><div align="right">
<input name="email" type="text" id="email" value="" size="16">
</div></td>
</tr>
<tr>
<td width="75"><div align="right">Name</div></td>
<td><div align="right">
<input name="name" type="text" id="name" value="" size="16">
</div></td>
</tr>
    <tr>
<td width="75"><div align="right"> </div></td>
<td> <div align="left">    
<input name="funcml" type="radio" value="add" checked>Subscribe</div></td>
</tr>
<tr>
<td width="75"><div align="right"> </div></td>
<td> <div align="left">    
<input name="funcml" type="radio" value="unsub2">Unsubscribe</div></td>
</tr>
<tr>
<td width="75"><div align="right">
<input name="p" type="hidden" id="p" value="3">
  <input type="hidden" name="nlbox[1]" value="1">
  </div></td>
<td> <div align="right">
<br>
<input type="submit" name="Submit" value="Submit">
</div></td>
</tr>
</table>
</form>
[/code]

Here is my best try:

First, since the images for the sites template are already formatted, I believe we should take the table out.

[code]
<form name="" method="post" action="http://www.mysite.com/12all_Z/box.php">

<td><div align="right">
<input name="email" type="text" id="email" value="" size="16">
</div></td>
</tr>
<tr>
<td width="75"><div align="right">Name</div></td>
<td><div align="right">
<input name="name" type="text" id="name" value="" size="16">
</div></td>
</tr>
    <tr>
<td width="75"><div align="right"> </div></td>
<td> <div align="left">    
<input name="submit" name="fncml"  type="image"  src="images/arrow.gif"</div></td>
</tr>
<tr>
<td width="75"><div align="right"> </div></td>
<td> <div align="left">    
<input name="funcml" type="radio" src="images/unsubscribe.gif" </div></td>
</tr>
<tr>
<td width="75"><div align="right">
<input name="p" type="hidden" id="p" value="3">
  <input type="hidden" name="nlbox[1]" value="1">
  </div></td>
<td> <div align="right">
<br>
</div></td>
</tr>
</table>
</form>
[/code]


Link to comment
https://forums.phpfreaks.com/topic/5214-newsletter-html-input/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.