In Progress

Form Addition / Validate

I have a very simple one input form (in PHP) that I would like to modify. It saves the data input into the form text box in a text file.

I need it to open the text file first, check if the entry is already in the text file, if it is it will just display a message saying "Already Added" or if the entry is not in the text file, it writes to the text file then displays a message "Added"...

Here is the code and HTML...

<?php

if(isset($_POST['submit']))

{

$email = $_POST['email'] . PHP_EOL;

$file = fopen("[url removed, login to view]","a+");

fwrite($file,$email);

fclose($file);

print_r(error_get_last());

}

?>

<form action= "" method="post" name="form">

<input type="text" name="email">

<br>

<br>

<input type="submit" name="submit" value="submit"><br>

</form>

As you can see this is very simple. it currently opens the text file, writes the email address, done. It should open the text file, read it and then write if the entry does not already exist...

This is a very simple project using file_get_contents() and then use strstr() to see if $_POST['email'] is in the contents you read. Only if it isn't, then open and write the email address to the file.

Please bid according to needs, maybe 3 minutes of work.

Thanks

Skills: HTML5, PHP

See more: project is for network specialist engineers only please bid if you have done this before, project is for network specialist / engineers only! please bid if you have done this before, magento print invoice error, form hidden post value, jquery modal dialog form post value php, aspx form redirect validate, zend form ajax validate, javascript form calculate validate, captcha php form send validate action, html form method post ie7 bug, form flash validate, form multipage validate php, creloaded print order error, form protect validate, php sign form javascript validate, simple javascript form validate example mootools, simple order form javascript, write simple asp form, php simple login form without database, simple html form paypal, creating simple mail form script, designing simple registry form php, php5 simple email form, simple php form email, php simple order form

About the Employer:
( 9 reviews ) Ft Walton Beach, United States

Project ID: #15130365

Awarded to:

abbalove

Hey, I can do that quickly. Regards, Rocky .

$12 USD in 1 day
(41 Reviews)
5.0

23 freelancers are bidding on average $22 for this job

salienttemplates

Hello, We are experts in HTML,CSS,Boostrap,Jquery,Javascript,core Php, Magento, WordPress, Codeigniter, and many other open source framework Thanks Relevant Skills and Experience Hello, We are experts in HTML,CSS,Boos More

$30 USD in 0 days
(153 Reviews)
7.1
articontech

A proposal has not yet been provided

$15 USD in 1 day
(88 Reviews)
5.8
ankitasharmaind2

Sure,can do customization and complete all requirements in your site as per your need. Proficient in WP(plugins and themes), Web & graphic designing, Photoshop. Expert in HTML5, CSS3, PHP, JS,MySQL. Relevant Skills an More

$15 USD in 1 day
(31 Reviews)
4.3
oliviainfotech

Hi greetings of the day I am a Experienced PHP Developer based out in Chennai,India. My experience revolves around development of web and mobile applications,Ecommerce websites. Relevant Skills and Experience I believ More

$25 USD in 1 day
(39 Reviews)
4.6
satyajeetkeshari

I am having sufficient experience in PHP I can do this task Relevant Skills and Experience >> Proficient in CMS- WordPress, Joomla. >> Proficient of php/mysql, Javascript, Ajax, HTML5, PHP, CSS3, Jquery Proposed Mi More

$10 USD in 0 days
(39 Reviews)
4.1
$21 USD in 1 day
(30 Reviews)
4.0
kishanpala

yes i read your code ,let me know i will get it done right away, looking forward for the reply to shake of more clarity Relevant Skills and Experience php ,codeigniter,javascript,json,html,mysql Proposed Milestones $ More

$15 USD in 1 day
(15 Reviews)
3.9
yh2013

Dear Mr/Mrs/Ms.I have developed many php script for web scraping and manage of data. I have the required experience, see my portafolio. Relevant Skills and Experience my skills are in php, javascript, java, html, pyth More

$25 USD in 1 day
(6 Reviews)
3.3
nikunjv9

Hello sir, - I have a good experience in PHP, photoshop,bootstrap 3, CSS3 and HTML5. Relevant Skills and Experience Our Work [url removed, login to view] [url removed, login to view] [url removed, login to view] http://fla More

$25 USD in 1 day
(9 Reviews)
3.3
misuahmed

Hello Sir, I would like to offer cooperation on this project. I am very reliable and efficient. The project will be deliver asap. I am ready to start work now. For more details contact with me. Relevant Skills and Exp More

$35 USD in 1 day
(6 Reviews)
3.5
indiadox

Greetings I have very strong experience of more than 8+ years in the field of Website Design & Development Relevant Skills and Experience with expertise in PHP, Wordpress , HTML,HTML5,CSS,JavaScript, Website Design , More

$20 USD in 1 day
(1 Review)
3.0
$25 USD in 1 day
(3 Reviews)
2.4
mahendrase51

My 7 year Experience in PHP and Js. We are ready to allocate our resource and to start working on this project right away with our utmost dedication and quality of work. Relevant Skills and Experience Relevant Skills More

$15 USD in 0 days
(2 Reviews)
1.3
dividas

I will do your Validation in short time message for discussion. Relevant Skills and Experience I have 3 year experience in web developing Proposed Milestones $20 USD - Payment I am waiting your valuable answer. Than More

$20 USD in 1 day
(3 Reviews)
1.1
rajeshdevup

Hello Sir, How are you doing? I went through your requirement is validation on text file records and Yes I can do. I will be available to discuss in detail Thank you Rajesh Kumar

$30 USD in 1 day
(1 Review)
0.8
sunnyinnovatarz

Here is the some of my best links which i have designed and front-end develop in past years. We are sure that we can deliver you immediately the best work. Relevant Skills and Experience I am full time freelancer. I h More

$25 USD in 1 day
(2 Reviews)
0.8
mohamedihshan

. Relevant Skills and Experience i have good knowlede i have good team and i can do it [url removed, login to view] we all are degree holders .i can send my team [url removed, login to view] select our [url removed, login to view] Proposed Milestones $33 USD - . .

$33 USD in 2 days
(0 Reviews)
0.0
$25 USD in 1 day
(0 Reviews)
0.0
ParveenArpu

i have completely understand your requirement as relavent skill. Relevant Skills and Experience Excellent command on PHP/MySQL, testing, html5/css3, Javascript, J-Query, Photoshop, bootstrap, PSD slicing, convertin More

$25 USD in 1 day
(0 Reviews)
0.0
jyotisingh10

Hey, I have gone through your post and want to discuss some points regarding your requirements. Therefore, would request you to initiate the chat in order to clarify my queries/comments. Relevant Skills and Experienc More

$13 USD in 1 day
(0 Reviews)
0.0