makamo66's Profile User Rating: -----

Reputation: -5 Shunned
Group:
Members
Active Posts:
43 (0.02 per day)
Joined:
04-February 09
Profile Views:
1,100
Last Active:
User is offline Oct 23 2014 07:59 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0

Latest Visitors

Icon   makamo66 has not set their status

Posts I've Made

  1. In Topic: Get Post Data from JQuery Multidatespicker

    Posted 31 Dec 2013

    In the html:
    <div id="simpliest-usage" class="box"></div><br />
    <form method="POST" action="http://beta.opentemp.local/user/dashboard" accept-charset="UTF-8" id="submit_mdp"><input name="_token" type="hidden" value="9jlMjOzit5sZBGPkYQfwXwSerdzSnZXYVnEyr9Yx"><input class="mdp_button" type="submit" value="Submit"></form>
    


    In the javascript
    $( "#submit_mdp" ).submit(function( event ) {
      $.ajax({
        url: 'http://beta.opentemp.local/user/dashboard',
    	data: $("form#submit_mdp").serialize(),
        type: 'POST',
        'beforeSend': function(xhr, settings) {
    	console.log( $("form#submit_mdp").serialize() );
          console.log('ABOUT TO SEND');
        },
        'success': function(result, status_code, xhr) {
          console.log('SUCCESS!');
        },
        'complete': function(xhr, text_status) {
          console.log('Done.');
        },
        'error': function (XMLHttpRequest, textStatus, errorThrown) {
    
    	alert("Error with ajax Function: "+ textStatus+" "+errorThrown); }
      });
    });
    
    

    in the php
    print_r($_POST);
    


    The multidatespicker is a modal.
  2. In Topic: Remove Quotation Marks from Variable

    Posted 2 Oct 2013

    I've tried all this and they look like the normal quotation marks
    $comma_separated = ereg_replace('"', "", $comma_separated); //no change in output
    			$comma_separated = str_replace('"', '', $comma_separated); //no change in output 
    			$comma_separated = substr($comma_separated,1,-1); //outputs the last and first letter removed
    			$comma_separated = trim($comma_separated,'"'); //no change in output
    
  3. In Topic: Remove Quotation Marks from Variable

    Posted 1 Oct 2013

    I wasn't specific enough. It's the double quotation marks that I'm trying to remove. Not the single ones. But you figured that out on your own. I tried the str_replace with the backslashed quotation mark but that didn't work anyway.
  4. In Topic: Implode a multidimensional array

    Posted 1 Oct 2013

    This post was answered at a different forum. The answer was

    <?php
        $all = array(
            array(
                array('users' => array('email' => 'makamo66@hotmail.com')),
                array('users' => array('email' => 'makamo77@hotmail.com'))
                )
            );
        $cleanarray = array();
        foreach ($all[0] as $key => $value) {
            array_push($cleanarray, $value['users']['email']);
        }
        $comma_separated = implode(",", $cleanarray);
        echo $comma_separated;
    ?>
    
  5. In Topic: How to Prevent Spam Submissions

    Posted 21 Jan 2013

    The problem was that I wasn't using the auth component for my recipes controller but I've fixed that now.

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Click here to e-mail me

Friends

makamo66 hasn't added any friends yet.

Comments

makamo66 has no profile comments yet. Why not say hello?