This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Html form with hidden data called csv_hdr and csv_output. | |
/***********************************************************/ | |
$(document).ready(function(){ | |
$("#btn_challenge_score_details").click(function (){ | |
var csv_hdr = $("#csv_hdr").val(); | |
var csv_output = $("#csv_output").val(); | |
var dataString = 'csv_hdr='+ csv_hdr + '&csv_output=' + csv_output; | |
//alert (dataString); return false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(isset($_POST['submit'])){ | |
// REST Server URL | |
$request_url = 'http://localhost/drupal710/webservice/user/login'; | |
// User data | |
$test = array( | |
'username' => $_POST['username'], | |
'password' => $_POST['password'], |