Похожие чаты

<?Php Require_once "core/config.php"; require_once "includes/token.php"; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Smart

Life Capital Limited</title>
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/objects.js"></script>
<script type="text/javascript" src="js/functions.js"></script>


<script>

$(function() {

$('#addMember').on('submit', function(event) {
event.preventDefault();
var data = new FormData($(this)[0]);

var ajax = new ajaxform(data);

var results = ajax.makeRequest();

alert(results);


});

function ajaxform(data) {
this.results = "";
this.data = data;

this.makeRequest = function() {

$.ajax({
type:'POST',
url:'ajax.php',
data:this.data,
processData:false,
contentType:false,
cache:false,
success:function(responseText) {
self.results = responseText;
}
});

return self.results;

}


}




});

</script>

</head>
<body>


<div class="main-container">

<?php require_once 'includes/header.php'; ?>
<?php require_once 'includes/sidebar.php'; ?>



<div class="wrapper">

<?php require_once 'includes/breadcrumb.php'; ?>

<div class="body">



<div class="container-fluid">

<h2 class="title">Add Member</h2>


<div class="row">

<div class="col-sm-3">



</div>

</div>


<div class="box box-blue main-box">

<p class="subtitle">Personal Information</p>

<form action="" class="form-horizontal" id="addMember">
<div class="form-group">
<label for="" class="col-sm-3">First Name</label>
<div class="col-sm-9"><input placeholder="First Name..." type="text" name="fname" id="" class="form-control"></div>
</div>

<div class="form-group">
<label for="" class="col-sm-3">Middle Name</label>
<div class="col-sm-9"><input placeholder="Middle Name" type="text" name="mname" id="" class="form-control"></div>
</div>

<div class="form-group">
<label for="" class="col-sm-3">Last Name</label>
<div class="col-sm-9"><input placeholder="Last Name" type="text" name="lname" id="" class="form-control"></div>
</div>

<div class="form-group">
<label for="" class="col-sm-3">Gender</label>
<div class="col-sm-9">
<select name="gender" id="" class="form-control gender">
<option value="">select gender</option>
<option value="M">Male</option>
<option value="F">Female</option>
</select>
</div>
</div>



<div class="form-group">
<label for="" class="col-sm-3">Mobile Number</label>
<div class="col-sm-9"><input placeholder="Mobile Number" type="text" name="mobile" id="" class="form-control"></div>
</div>

<div class="form-group">
<label for="" class="col-sm-3">ID Number</label>
<div class="col-sm-9"><input placeholder="ID Number" type="text" name="idnumber" id="" class="form-control"></div>
</div>

1 ответов

11 просмотров
Пользователь-61703 Автор вопроса

here is a complete code..please help.. i have to submit the form twice to have the desired results.

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта