473,473 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Subscribe-Unsub Button Code..How do I make this work

2 New Member
I have this string which is supposed to allow someone to jot their email address in to subscribe or unsubscribe to a newsletter or similar item. New at HTML and PHP, etc. so can someone tell me what do I place where to make this code work? See below:
Expand|Select|Wrap|Line Numbers
  1. <form action="http://example.com/" id="newsletter-form"> <fieldset> <div class="rowElem"> <h2>Newsletter</h2> <input type="email" value="Enter Your Email Here" onFocus="if(this.value=='Enter Your Email Here'){this.value=''}" onBlur="if(this.value==''){this.value='Enter Your Email Here'}" > <div class="clear"><a href="http://bytes.com/" class="fleft">Unsubscribe</a><a href="http://bytes.com/" class="fright" onClick="document.getElementById('newsletter-form').submit()">Submit</a></div> </div> </fieldset> </form>
Oct 20 '13 #1
3 1702
Dormilich
8,658 Recognized Expert Moderator Expert
if someone should be able to subscribe/unsubscribe, there should be a server-side programming language involved.
Oct 22 '13 #2
ucdesigns
2 New Member
That's what I would think too but this code is all there is. That's why I came here hoping someone would know either what is missing or what other code I need to use or place in strategic locations to make this work.
Oct 22 '13 #3
Dormilich
8,658 Recognized Expert Moderator Expert
well, you need a server-side language (e.g. PHP) to save/remove the passed email to/from the storage facility (DB, file).
Oct 23 '13 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Frances Del Rio | last post by:
the other day someone asked can u disable 'back' button w/JavaScript.. response was NO.. I asked really? because I've seen a lot of sites where 'back' button doesn't work and had always assumed...
4
by: Chris Lane | last post by:
Hi, I have an HTML RESET button and Web Control Button that posts back to the server. Problem is the reset button doesn't work after the postback occurs. Any ideas or suggestions as to why this...
4
by: bbp | last post by:
Hello, In an ASPX page I have a "Quit" button which make a simple redirect in code-behind. This button doesn't work no more since (I think) I moved from the framework 1.0 to 1.1 and it doesn't...
21
by: Ben | last post by:
Hello I have frames set up in an asp.net application and need one frame to refresh another. Seeing as events need to be registered at the time the page is sent from the server, I was wondering...
2
by: ruthiefy | last post by:
Hi, I am new to ASP.NET and I started working with 2005. I opened a new project and in the Default.aspx Web Form I clicked the "Design" button in the bottom of the screen so I can edit the...
5
by: gabriele | last post by:
Hi, i'm new in this newsgroup, I'm working on a web based managerial software in my company and, for speed-up my work, have created a framework This framework uses the PHP and JAVASCRIPT...
6
by: John | last post by:
Following code belongs to the first field in form B. When I open form B from form A, ctl.Name returns the name of Form's A button which I just clicked. How does this work? I thought when the field...
0
by: Bobby Edward | last post by:
All of a sudden my "Browse..." button doesn't work anymore. This is the button in the CSS "Modify Style" dialog for "background-image:". I've rebooted and it still fails. Any idea how to fix...
5
by: Die Klein | last post by:
ive been trying to get this code to work for a few days now, but i dont know what im doing wrong :S im basicaly trying to create a login that will allow members to login to their details. the...
2
by: soule | last post by:
In order to use the "Me" reference in Access VBE and to have simpler, cleaner code, I moved some automation button code (Private Sub A1_Form_Re_send_Welcome_E_Mail_Only_Button_Click()) from a...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.