pass value of a table cell obtained by jQuery to php page
This is my first ever question on here and I am a bit nervous! I can obtain the value of a simple html table cell using jQuery but I cannot pass it to a php page for use as a php variable. I have been trying for 2 days using every option I have found via google - from Ajax, JSON to _POST / _GET and back again. I just can't manage it and am now in a state of total 'mind is blank'.
My test table:
<h3>Test Table</h3>
<table id="sourcetable">
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Url</th>
<th>Country</th>
<th>Item</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Name 1</td>
<td>url 1</td>
<td>Country 1</td>
<td>Item 1</td>
</tr>
</tbody>
</table>
jQuery
<script type="text/javascript">
$(document).ready(function() {
$( "#sourcetable tbody tr" ).on( "click", function( event ) {
$("#fillname").val($(this).find("td").eq(1).html());
var j=($(this).find("td").eq(1).html());
document.getElementById("hidfo").innerHTML = JSON.stringify(j);
});
});
</script>
I can click on a table cell and get its value and place it into an P element on the same page such as:
<p id="hidfo"></p>
or an html input field
<input type="text" id="fillname" value="" />
But everything else I have tried in relation to passing it to a php variable has failed. Ideas ?
AJAX
<script type="text/javascript">
$(function(){
$.ajax({
type: "POST",
url: 'clicktest.php',
data: ({prod: j}),
cache: false,
success: function()
{
alert("Order Submitted");
}
});
});
</script>
Error Message
jQuery.Deferred exception: j is not defined @https://xxxxxx.com/portal/trans.php:127:19
l@https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:29373
a/https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:29677
undefined
The simple PHP i use on clicktest.php is:
<?php
$temp=$_POST['prod'];
echo $temp;
?>
on page load it gives the PHP error:
Notice: Undefined index: prod in /home/gameon/public_html/portal/clicktest.php on line 32
php jquery json ajax
add a comment |
This is my first ever question on here and I am a bit nervous! I can obtain the value of a simple html table cell using jQuery but I cannot pass it to a php page for use as a php variable. I have been trying for 2 days using every option I have found via google - from Ajax, JSON to _POST / _GET and back again. I just can't manage it and am now in a state of total 'mind is blank'.
My test table:
<h3>Test Table</h3>
<table id="sourcetable">
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Url</th>
<th>Country</th>
<th>Item</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Name 1</td>
<td>url 1</td>
<td>Country 1</td>
<td>Item 1</td>
</tr>
</tbody>
</table>
jQuery
<script type="text/javascript">
$(document).ready(function() {
$( "#sourcetable tbody tr" ).on( "click", function( event ) {
$("#fillname").val($(this).find("td").eq(1).html());
var j=($(this).find("td").eq(1).html());
document.getElementById("hidfo").innerHTML = JSON.stringify(j);
});
});
</script>
I can click on a table cell and get its value and place it into an P element on the same page such as:
<p id="hidfo"></p>
or an html input field
<input type="text" id="fillname" value="" />
But everything else I have tried in relation to passing it to a php variable has failed. Ideas ?
AJAX
<script type="text/javascript">
$(function(){
$.ajax({
type: "POST",
url: 'clicktest.php',
data: ({prod: j}),
cache: false,
success: function()
{
alert("Order Submitted");
}
});
});
</script>
Error Message
jQuery.Deferred exception: j is not defined @https://xxxxxx.com/portal/trans.php:127:19
l@https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:29373
a/https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:29677
undefined
The simple PHP i use on clicktest.php is:
<?php
$temp=$_POST['prod'];
echo $temp;
?>
on page load it gives the PHP error:
Notice: Undefined index: prod in /home/gameon/public_html/portal/clicktest.php on line 32
php jquery json ajax
Okay - you are trying makeajaxcall but finding difficult to send the data to backend running on php
– secret super star
Nov 22 '18 at 15:01
Please show us your Ajax attempt. Check the console (in your browsers development tools) and share any potential errors/messages you get when trying to post it using Ajax.
– Magnus Eriksson
Nov 22 '18 at 15:01
What doesvardump($_POST)give you?
– Agi Hammerthief
Nov 24 '18 at 14:17
var_dump($_POST) gives array(0) { }
– John H
Nov 24 '18 at 14:24
add a comment |
This is my first ever question on here and I am a bit nervous! I can obtain the value of a simple html table cell using jQuery but I cannot pass it to a php page for use as a php variable. I have been trying for 2 days using every option I have found via google - from Ajax, JSON to _POST / _GET and back again. I just can't manage it and am now in a state of total 'mind is blank'.
My test table:
<h3>Test Table</h3>
<table id="sourcetable">
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Url</th>
<th>Country</th>
<th>Item</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Name 1</td>
<td>url 1</td>
<td>Country 1</td>
<td>Item 1</td>
</tr>
</tbody>
</table>
jQuery
<script type="text/javascript">
$(document).ready(function() {
$( "#sourcetable tbody tr" ).on( "click", function( event ) {
$("#fillname").val($(this).find("td").eq(1).html());
var j=($(this).find("td").eq(1).html());
document.getElementById("hidfo").innerHTML = JSON.stringify(j);
});
});
</script>
I can click on a table cell and get its value and place it into an P element on the same page such as:
<p id="hidfo"></p>
or an html input field
<input type="text" id="fillname" value="" />
But everything else I have tried in relation to passing it to a php variable has failed. Ideas ?
AJAX
<script type="text/javascript">
$(function(){
$.ajax({
type: "POST",
url: 'clicktest.php',
data: ({prod: j}),
cache: false,
success: function()
{
alert("Order Submitted");
}
});
});
</script>
Error Message
jQuery.Deferred exception: j is not defined @https://xxxxxx.com/portal/trans.php:127:19
l@https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:29373
a/https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:29677
undefined
The simple PHP i use on clicktest.php is:
<?php
$temp=$_POST['prod'];
echo $temp;
?>
on page load it gives the PHP error:
Notice: Undefined index: prod in /home/gameon/public_html/portal/clicktest.php on line 32
php jquery json ajax
This is my first ever question on here and I am a bit nervous! I can obtain the value of a simple html table cell using jQuery but I cannot pass it to a php page for use as a php variable. I have been trying for 2 days using every option I have found via google - from Ajax, JSON to _POST / _GET and back again. I just can't manage it and am now in a state of total 'mind is blank'.
My test table:
<h3>Test Table</h3>
<table id="sourcetable">
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Url</th>
<th>Country</th>
<th>Item</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Name 1</td>
<td>url 1</td>
<td>Country 1</td>
<td>Item 1</td>
</tr>
</tbody>
</table>
jQuery
<script type="text/javascript">
$(document).ready(function() {
$( "#sourcetable tbody tr" ).on( "click", function( event ) {
$("#fillname").val($(this).find("td").eq(1).html());
var j=($(this).find("td").eq(1).html());
document.getElementById("hidfo").innerHTML = JSON.stringify(j);
});
});
</script>
I can click on a table cell and get its value and place it into an P element on the same page such as:
<p id="hidfo"></p>
or an html input field
<input type="text" id="fillname" value="" />
But everything else I have tried in relation to passing it to a php variable has failed. Ideas ?
AJAX
<script type="text/javascript">
$(function(){
$.ajax({
type: "POST",
url: 'clicktest.php',
data: ({prod: j}),
cache: false,
success: function()
{
alert("Order Submitted");
}
});
});
</script>
Error Message
jQuery.Deferred exception: j is not defined @https://xxxxxx.com/portal/trans.php:127:19
l@https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:29373
a/https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:29677
undefined
The simple PHP i use on clicktest.php is:
<?php
$temp=$_POST['prod'];
echo $temp;
?>
on page load it gives the PHP error:
Notice: Undefined index: prod in /home/gameon/public_html/portal/clicktest.php on line 32
php jquery json ajax
php jquery json ajax
edited Nov 23 '18 at 10:15
John H
asked Nov 22 '18 at 14:55
John HJohn H
12
12
Okay - you are trying makeajaxcall but finding difficult to send the data to backend running on php
– secret super star
Nov 22 '18 at 15:01
Please show us your Ajax attempt. Check the console (in your browsers development tools) and share any potential errors/messages you get when trying to post it using Ajax.
– Magnus Eriksson
Nov 22 '18 at 15:01
What doesvardump($_POST)give you?
– Agi Hammerthief
Nov 24 '18 at 14:17
var_dump($_POST) gives array(0) { }
– John H
Nov 24 '18 at 14:24
add a comment |
Okay - you are trying makeajaxcall but finding difficult to send the data to backend running on php
– secret super star
Nov 22 '18 at 15:01
Please show us your Ajax attempt. Check the console (in your browsers development tools) and share any potential errors/messages you get when trying to post it using Ajax.
– Magnus Eriksson
Nov 22 '18 at 15:01
What doesvardump($_POST)give you?
– Agi Hammerthief
Nov 24 '18 at 14:17
var_dump($_POST) gives array(0) { }
– John H
Nov 24 '18 at 14:24
Okay - you are trying make
ajax call but finding difficult to send the data to backend running on php– secret super star
Nov 22 '18 at 15:01
Okay - you are trying make
ajax call but finding difficult to send the data to backend running on php– secret super star
Nov 22 '18 at 15:01
Please show us your Ajax attempt. Check the console (in your browsers development tools) and share any potential errors/messages you get when trying to post it using Ajax.
– Magnus Eriksson
Nov 22 '18 at 15:01
Please show us your Ajax attempt. Check the console (in your browsers development tools) and share any potential errors/messages you get when trying to post it using Ajax.
– Magnus Eriksson
Nov 22 '18 at 15:01
What does
vardump($_POST) give you?– Agi Hammerthief
Nov 24 '18 at 14:17
What does
vardump($_POST) give you?– Agi Hammerthief
Nov 24 '18 at 14:17
var_dump($_POST) gives array(0) { }
– John H
Nov 24 '18 at 14:24
var_dump($_POST) gives array(0) { }
– John H
Nov 24 '18 at 14:24
add a comment |
1 Answer
1
active
oldest
votes
You need to either define j outside the scope of your .on( "click", function( handler or invoke the AJAX call from within it, once you've obtained a value for j:
<script type="text/javascript">
$(document).ready(function() {
$("#sourcetable tbody tr" ).on("click", function(event) {
$("#fillname").val($(this).find("td").eq(1).html());
var j = ($(this).find("td").eq(1).html());
$("#hidfo").html(JSON.stringify(j));
$.ajax({
type: "POST",
url: 'clicktest.php',
// You don't need the parentheses for an object; might need to wrap in JSON.stringify() call
data: {prod: j},
cache: false,
success: function() {
alert("Order Submitted");
},
error: function (jqXHR, textStatus, errorThrown) {
alert("Failed to submit order!");
console.error(
"Failed to submit order! " + JSON.stringify(jqXHR) + "nt"
+ textStatus + "; " + errorThrown
);
}
});
});
});
</script>
Thanks for that. That certainly solves the 'not defined j error'. But I still cant pass j to the php file. I can only assume it has something to do with the data type?
– John H
Nov 23 '18 at 10:04
I'd try usingconsole.log(j)right after getting the value ofjto see what's being passed to the PHP page (contents of$("#hidfo")) or setting a breakpoint on your AJAX call and inspectingj. Additionally, get your PHP page to log/dump the parameters it receives. Perhaps change.html()to.val()for the code that assigns toj(although I suspect that's invalid for anything that's not an element with avalueproperty).
– Agi Hammerthief
Nov 23 '18 at 10:15
Using console.log the value of j is as it should be ie. the contents of the second cell in the row that is clicked. But vardump of $_POST in the php page is NULL and a PHP error of undefined j
– John H
Nov 23 '18 at 15:07
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53433583%2fpass-value-of-a-table-cell-obtained-by-jquery-to-php-page%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You need to either define j outside the scope of your .on( "click", function( handler or invoke the AJAX call from within it, once you've obtained a value for j:
<script type="text/javascript">
$(document).ready(function() {
$("#sourcetable tbody tr" ).on("click", function(event) {
$("#fillname").val($(this).find("td").eq(1).html());
var j = ($(this).find("td").eq(1).html());
$("#hidfo").html(JSON.stringify(j));
$.ajax({
type: "POST",
url: 'clicktest.php',
// You don't need the parentheses for an object; might need to wrap in JSON.stringify() call
data: {prod: j},
cache: false,
success: function() {
alert("Order Submitted");
},
error: function (jqXHR, textStatus, errorThrown) {
alert("Failed to submit order!");
console.error(
"Failed to submit order! " + JSON.stringify(jqXHR) + "nt"
+ textStatus + "; " + errorThrown
);
}
});
});
});
</script>
Thanks for that. That certainly solves the 'not defined j error'. But I still cant pass j to the php file. I can only assume it has something to do with the data type?
– John H
Nov 23 '18 at 10:04
I'd try usingconsole.log(j)right after getting the value ofjto see what's being passed to the PHP page (contents of$("#hidfo")) or setting a breakpoint on your AJAX call and inspectingj. Additionally, get your PHP page to log/dump the parameters it receives. Perhaps change.html()to.val()for the code that assigns toj(although I suspect that's invalid for anything that's not an element with avalueproperty).
– Agi Hammerthief
Nov 23 '18 at 10:15
Using console.log the value of j is as it should be ie. the contents of the second cell in the row that is clicked. But vardump of $_POST in the php page is NULL and a PHP error of undefined j
– John H
Nov 23 '18 at 15:07
add a comment |
You need to either define j outside the scope of your .on( "click", function( handler or invoke the AJAX call from within it, once you've obtained a value for j:
<script type="text/javascript">
$(document).ready(function() {
$("#sourcetable tbody tr" ).on("click", function(event) {
$("#fillname").val($(this).find("td").eq(1).html());
var j = ($(this).find("td").eq(1).html());
$("#hidfo").html(JSON.stringify(j));
$.ajax({
type: "POST",
url: 'clicktest.php',
// You don't need the parentheses for an object; might need to wrap in JSON.stringify() call
data: {prod: j},
cache: false,
success: function() {
alert("Order Submitted");
},
error: function (jqXHR, textStatus, errorThrown) {
alert("Failed to submit order!");
console.error(
"Failed to submit order! " + JSON.stringify(jqXHR) + "nt"
+ textStatus + "; " + errorThrown
);
}
});
});
});
</script>
Thanks for that. That certainly solves the 'not defined j error'. But I still cant pass j to the php file. I can only assume it has something to do with the data type?
– John H
Nov 23 '18 at 10:04
I'd try usingconsole.log(j)right after getting the value ofjto see what's being passed to the PHP page (contents of$("#hidfo")) or setting a breakpoint on your AJAX call and inspectingj. Additionally, get your PHP page to log/dump the parameters it receives. Perhaps change.html()to.val()for the code that assigns toj(although I suspect that's invalid for anything that's not an element with avalueproperty).
– Agi Hammerthief
Nov 23 '18 at 10:15
Using console.log the value of j is as it should be ie. the contents of the second cell in the row that is clicked. But vardump of $_POST in the php page is NULL and a PHP error of undefined j
– John H
Nov 23 '18 at 15:07
add a comment |
You need to either define j outside the scope of your .on( "click", function( handler or invoke the AJAX call from within it, once you've obtained a value for j:
<script type="text/javascript">
$(document).ready(function() {
$("#sourcetable tbody tr" ).on("click", function(event) {
$("#fillname").val($(this).find("td").eq(1).html());
var j = ($(this).find("td").eq(1).html());
$("#hidfo").html(JSON.stringify(j));
$.ajax({
type: "POST",
url: 'clicktest.php',
// You don't need the parentheses for an object; might need to wrap in JSON.stringify() call
data: {prod: j},
cache: false,
success: function() {
alert("Order Submitted");
},
error: function (jqXHR, textStatus, errorThrown) {
alert("Failed to submit order!");
console.error(
"Failed to submit order! " + JSON.stringify(jqXHR) + "nt"
+ textStatus + "; " + errorThrown
);
}
});
});
});
</script>
You need to either define j outside the scope of your .on( "click", function( handler or invoke the AJAX call from within it, once you've obtained a value for j:
<script type="text/javascript">
$(document).ready(function() {
$("#sourcetable tbody tr" ).on("click", function(event) {
$("#fillname").val($(this).find("td").eq(1).html());
var j = ($(this).find("td").eq(1).html());
$("#hidfo").html(JSON.stringify(j));
$.ajax({
type: "POST",
url: 'clicktest.php',
// You don't need the parentheses for an object; might need to wrap in JSON.stringify() call
data: {prod: j},
cache: false,
success: function() {
alert("Order Submitted");
},
error: function (jqXHR, textStatus, errorThrown) {
alert("Failed to submit order!");
console.error(
"Failed to submit order! " + JSON.stringify(jqXHR) + "nt"
+ textStatus + "; " + errorThrown
);
}
});
});
});
</script>
edited Nov 23 '18 at 10:30
answered Nov 23 '18 at 7:06
Agi HammerthiefAgi Hammerthief
1,2181326
1,2181326
Thanks for that. That certainly solves the 'not defined j error'. But I still cant pass j to the php file. I can only assume it has something to do with the data type?
– John H
Nov 23 '18 at 10:04
I'd try usingconsole.log(j)right after getting the value ofjto see what's being passed to the PHP page (contents of$("#hidfo")) or setting a breakpoint on your AJAX call and inspectingj. Additionally, get your PHP page to log/dump the parameters it receives. Perhaps change.html()to.val()for the code that assigns toj(although I suspect that's invalid for anything that's not an element with avalueproperty).
– Agi Hammerthief
Nov 23 '18 at 10:15
Using console.log the value of j is as it should be ie. the contents of the second cell in the row that is clicked. But vardump of $_POST in the php page is NULL and a PHP error of undefined j
– John H
Nov 23 '18 at 15:07
add a comment |
Thanks for that. That certainly solves the 'not defined j error'. But I still cant pass j to the php file. I can only assume it has something to do with the data type?
– John H
Nov 23 '18 at 10:04
I'd try usingconsole.log(j)right after getting the value ofjto see what's being passed to the PHP page (contents of$("#hidfo")) or setting a breakpoint on your AJAX call and inspectingj. Additionally, get your PHP page to log/dump the parameters it receives. Perhaps change.html()to.val()for the code that assigns toj(although I suspect that's invalid for anything that's not an element with avalueproperty).
– Agi Hammerthief
Nov 23 '18 at 10:15
Using console.log the value of j is as it should be ie. the contents of the second cell in the row that is clicked. But vardump of $_POST in the php page is NULL and a PHP error of undefined j
– John H
Nov 23 '18 at 15:07
Thanks for that. That certainly solves the 'not defined j error'. But I still cant pass j to the php file. I can only assume it has something to do with the data type?
– John H
Nov 23 '18 at 10:04
Thanks for that. That certainly solves the 'not defined j error'. But I still cant pass j to the php file. I can only assume it has something to do with the data type?
– John H
Nov 23 '18 at 10:04
I'd try using
console.log(j) right after getting the value of j to see what's being passed to the PHP page (contents of $("#hidfo")) or setting a breakpoint on your AJAX call and inspecting j. Additionally, get your PHP page to log/dump the parameters it receives. Perhaps change .html() to .val() for the code that assigns to j (although I suspect that's invalid for anything that's not an element with a value property).– Agi Hammerthief
Nov 23 '18 at 10:15
I'd try using
console.log(j) right after getting the value of j to see what's being passed to the PHP page (contents of $("#hidfo")) or setting a breakpoint on your AJAX call and inspecting j. Additionally, get your PHP page to log/dump the parameters it receives. Perhaps change .html() to .val() for the code that assigns to j (although I suspect that's invalid for anything that's not an element with a value property).– Agi Hammerthief
Nov 23 '18 at 10:15
Using console.log the value of j is as it should be ie. the contents of the second cell in the row that is clicked. But vardump of $_POST in the php page is NULL and a PHP error of undefined j
– John H
Nov 23 '18 at 15:07
Using console.log the value of j is as it should be ie. the contents of the second cell in the row that is clicked. But vardump of $_POST in the php page is NULL and a PHP error of undefined j
– John H
Nov 23 '18 at 15:07
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53433583%2fpass-value-of-a-table-cell-obtained-by-jquery-to-php-page%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Okay - you are trying make
ajaxcall but finding difficult to send the data to backend running on php– secret super star
Nov 22 '18 at 15:01
Please show us your Ajax attempt. Check the console (in your browsers development tools) and share any potential errors/messages you get when trying to post it using Ajax.
– Magnus Eriksson
Nov 22 '18 at 15:01
What does
vardump($_POST)give you?– Agi Hammerthief
Nov 24 '18 at 14:17
var_dump($_POST) gives array(0) { }
– John H
Nov 24 '18 at 14:24