Skip to content

Instantly share code, notes, and snippets.

View kankaungmalay's full-sized avatar

Khin Mon kankaungmalay

  • United Kingdom
View GitHub Profile
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;
<?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'],