To propose a service


To propose a service

 

Joie de vivre offers you the possibility to propose your services to others users. You enjoy helping others and you know to tinker for example? Come offer your services, someone might need you!

 

To offer your service, please fill the form below:

 

Category :

Department:

Message :

service,Nettoyage
service,demenagemement

$myNom=$current_user->user_lastname;
$myEmail=$current_user->user_email;
//Data Insertion
if(isset($_POST[‘submit’])){

//get the form elements and store them in variables
$myCategorie=$_POST[“myCategorie”];
$myMessage=$_POST[“myMessage”];
$myDep=$_POST[“myDep”];

if(!isset($myCategorie) || !isset($myMessage) ){
echo ‘

Error in your ad, please fill all the fields

‘;

} else {
$wpdb->insert(‘wp_services’, array(‘prenom’ => $myPrenom, ‘nom’ => $myNom, ’email’ => $myEmail, ‘categorie’ => $myCategorie, ‘message’ => $myMessage, ‘departement’ => $myDep));
header(“Location: http://joiedevivre.ovh/added-service”);
}
} else {

}
?>