html form +server,client side validation

IN PROGRESS
Bids
10
Avg Bid (USD)
$40
Project Budget (USD)
$30 - $50

Project Description:
Hello.i want someone to make me an html form with 6 input text fields (30 lines of these 6 fields).I want an otpion so my user can push a button and add e.g 30 more lines of these 6 fileds.After the user submits the form i want a validation check with javascript nad php to chaeck for fields like if he puts someting to filed 1 must put and to filed 2.if the form have errors i whant mesage/s to display to user but no field data the user had filed in to be lost (like to store values to sessions or something)html form fileds example
<form name="paragelia_form" method="post" action="par/par_se_xml.php" >
<tr>
<td><input name="data[0][kod]" type="text" style="width: 150px;" value="<?php
$kod="$_SESSION[kod]";
print"$kod"; ?>"></td>
<td><input name="data[0][tem]" type="text" style="width: 30px;" value="<?php
$tem="$_SESSION[tem]";
print"$tem"; ?>"></td>
<td><input name="data[0][kitrina]" type="text" style="width: 30px;" value=""></td>
<td><input name="data[0][leuka]" type="text" style="width: 30px;" value=""></td>
<td><input name="data[0][dixroma]" type="text" style="width: 30px;" value=""></td>
<td><textarea name="data[0][sxolia]" cols="10" rows="1"></textarea></td>
</tr>
<span id="add">add 30 lines</span>
<input type="submit" name="submit" id="par_save" value="save"></form>
</form>
and par_se_xml.php something like
<?php
session_start();
$filename = "order.xml";
date_default_timezone_set('Europe/Athens');

$imerominia=date('d/m/Y---H:i:s');
$time=time();

$sin=$_POST['sin'];



header('Content-type: "text/xml"; charset="utf8"');
header('Content-disposition: attachment; filename="'.$filename.'"');

echo '<?xml version="1.0" encoding="utf-8" ?>',PHP_EOL;
echo '<orders>',PHP_EOL;

echo '<order client="',$sin,'" orderdate="',$imerominia,'" timeint="',$time,'">',PHP_EOL;
$data = $_POST['data'];

foreach($data as $row):
$kod= $row['kod'];
$_SESSION['kod'] = $kod;
$tem =$row['tem'];
$_SESSION['tem'] = $tem;
$kitrina =$row['kitrina'];
$_SESSION['kitrina'] = $kitrina;
$leuka =$row['leuka'];
$_SESSION['leuka'] = $leuka;
$dixroma =$row['dixroma'];
$_SESSION['dixroma'] = $dixroma;
$sxolia= $row['sxolia'];
$_SESSION['sxolia'] = $sxolia;

if($kod==''&&$tem!=''){
$error[] = '** some error text';
if ($error) {
$a=''.implode( '<br>',$error);
$_SESSION['error'] = $a;
header("location:../index.php?i=nea_par&r=1");
}

}
if($kod!=''&&$tem==''){
$error[] = '** some error text';
if ($error) {
$a=''.implode( '<br>',$error);
$_SESSION['error'] = $a;
header("location:../index.php?i=nea_par&r=1");
}

}
else{


echo '<item product="',$kod,'" tem="',$tem,'" kitrina="',$kitrina,'" leuka="',$leuka,'" dixroma="',$dixroma,'" plir="',$sxolia,'"></item>',PHP_EOL;
}
endforeach;
echo '</order>',PHP_EOL;

echo '</orders>',PHP_EOL;

?>
i want to store the values to xml file.
So to resume if a user make mistakes to fields display errors but if the page reloads dont lose any data the user have enetred so far or any new lines added by jquery(with their field data agian not lost if any)

Skills required:
HTML5, jQuery / Prototype, PHP
Hire pvrontzos
Project posted by:
pvrontzos Greece
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the project creator or as one of the bidders to view bids.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.