Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,194,112 members, 7,953,403 topics. Date: Thursday, 19 September 2024 at 03:35 PM

Webmasters, I Need Your Help!!! - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / Webmasters, I Need Your Help!!! (208 Views)

Webmasters,i Need Your Help !!! / Webmasters: I Need Your Help With Adsense / Webmasters I Need Your Honest Review On My News Blog (2) (3) (4)

(1) (Reply) (Go Down)

Webmasters, I Need Your Help!!! by PatrickOkunima(m): 4:10pm On Feb 17, 2021
Good day, house.

Please, how do I add a subscription form (similar to the attached) on a php website?

Re: Webmasters, I Need Your Help!!! by PatrickOkunima(m): 5:51pm On Feb 17, 2021
HELP
Re: Webmasters, I Need Your Help!!! by PatrickOkunima(m): 7:02pm On Feb 17, 2021
Nnn
Re: Webmasters, I Need Your Help!!! by etoluw: 7:21pm On Feb 17, 2021
PatrickOkunima:
HELP

FRONTEND

<form method="post" action="subscribe.php">

<input type="email" name="email" placeholder="your email" required />

<input type="submit" value="subscribe" />

</form>


BACKEND

if( filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) ){
//add to database
}
else {
echo "Please enter a valid email address";

}
Re: Webmasters, I Need Your Help!!! by PatrickOkunima(m): 7:53pm On Feb 17, 2021
etoluw:


FRONTEND

<form method="post" action="subscribe.php">

<input type="email" name="email" placeholder="your email" required />

<input type="submit" value="subscribe" />

</form>


BACKEND

if( filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) ){
//add to database
}
else {
echo "Please enter a valid email address";

}
Thanks a million. I'll try it out.

(1) (Reply)

Added Support For Ghana Regions, Cities, LGA / Web Developers You Are Needed Asap / Looking For Someone To Provide Me With Twitter Engagements

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 7
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.