Jump to content


Photo

question


  • Please log in to reply
2 replies to this topic

#1 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 27 April 2006 - 05:03 AM

I know a lot more baout php now I have a specific question.
I am trying to create my own function to handle arrays coming from form fields. Where I can just call the function and have it print the info, this may or may not work any ideas.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#2 koencalliauw

koencalliauw
  • Members
  • PipPipPip
  • Advanced Member
  • 36 posts

Posted 27 April 2006 - 06:22 AM

I have some functions for request variables and arrays, if that is what you mean, but probably not:
function p($var)
{
    //returns the POST variable you request
    return $_POST[$var];
}


function g($var)
{
    //returns the GET variable you request
    return $_GET[$var];
}

function pr($arr)
{
    //print the array in a readable format
    echo "<pre>";
    print_r($arr);
    echo "</pre>";
}


#3 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 27 April 2006 - 09:33 PM

i'll keep those in mind thanks.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users