Em Andamento

PHP Form Needed to Update XML

I know this is a simple project as I almost got it right myself but I am not a PHP person. I have the files attached to work with. It is really just putting in the PHP component of the code and make it work right.

What I need is a simple PHP form to enable updates of the existing data in that XML file and to clear all, as another option. The code will make it clear why I need.

It must use simplexml so I understand it better later.

I also need this done pretty much immediately so I can carry on. I got it to work with 1 entry but couldnt get multiples to work.

The code I could get working is demonstrated below so it is probably a good base

The Sample XML file

<welcome>

<item>

<name>$welcome</name>

</item>

</welcome>

The Sample PHP

<?php

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

$data=simplexml_load_file('[url removed, login to view]');

$data->item->name=$_POST['name'];

$handle=fopen("[url removed, login to view]","wb");

fwrite($handle,$data->asXML());

fclose($handle);

}

$data=simplexml_load_file('[url removed, login to view]');

$welcome=$data->item->name;

?>

<form method="post">

<textarea name="name"><?php echo $welcome ?></textarea>

<br>

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

</form>

PLEASE REMEMBER TO USE MY FILES, NOT THE EXAMPLE ONES.

Habilidades: HTML, PHP, XML

Ver mais: xml data entry form, xml data entry, form submit xml, submit data php simple, sample html post, fwrite, php post value, php textarea value, php enable fopen, textarea value php, php html xml, php value post, html form method, enable php fopen, php component, php form input data, html textarea, php form html, html submit php, simple entry form html, simple name php, handle post php, echo file php, php echo file, data entry html form

Acerca do Empregador:
( 4 comentários ) Dapto, Australia

ID do Projeto: #6775286

Premiar a:

vermagarima

dear client i have Exceptional experience in WordPress Huge knowledge of WordPress plugins and architecture Wide knowledge of Social Media Proficient in PHP, HTML and CSS, MySQL, Ajax, jQuery and JavaScript Thorough Mais

$10 AUD em 1 dia
(0 Avaliações)
0.0

5 freelancers estão ofertando em média $75 para este trabalho

rajeshsonisl

Hello! Bid is to read from XML and also Write / Update the XML when the form is submitted (both). With 99% completion rate, 720 successfully completed projects, and a 5.00 reputation (maximum possible, 5.0) (Yes, Mais

$24 AUD em 1 dia
(529 Comentários)
7.5
xtreemsolution

Hello There Thanks for allowing me to post my offer I have checked your assignment and find that you need to create a website for your business I would be able to sign the NDA/Contract to get some more informa Mais

$309 AUD em 1 dia
(46 Comentários)
6.6
anshulikabansal

Hello Sir, I can work on this. Please start a PM on this. Thanks & Regards, Anshulika Bansal

$20 AUD em 1 dia
(36 Comentários)
4.8
odindarkmoor

Hello I can fix this code for you if you need more info please message me.Hello I can fix this code for you if you need more info please message me.

$10 AUD in 0 dias
(13 Comentários)
3.9
csinfo14

Hello, Thanks for sharing your requirement. We have gone through your description and we are confident to deliver you best solution. You can check our freelancer portfolio. Kindly have a look of our previous wor Mais

$14 AUD em 1 dia
(1 Comentário)
0.4