Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8876083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:07:40+00:00 2026-06-14T19:07:40+00:00

Here is my form, it looks correct, so this shoulnd’t be an issue ,

  • 0

Here is my form, it looks correct, so this shoulnd’t be an issue , I also removed the enctype to make sure it wasn’t that.

    <form action="<?php echo JRoute::_('index.php?option=com_woo&task=hello.create'); ?>" enctype="multipart/form-data" method="post">
      <p>
        Project Name : 
        <input style="width:30%;" name="name" id="name"/>
        <input style="display:none;" id="user_id" name="user_id" value="<?php echo $user->id;?>"/>
        <input style="display:none;" id="county" name="county"/>
        <input style="display:none;" id="state" name="state"  />
      </p>
      <button type="submit" class="btn-green" id="select_county">Create Project</button>
    </form>

Inside ControllerHello

    public function create()
    {
       $jinput = JFactory::getApplication()->input;
       $foo = $jinput->get('state', '', 'filter');
       print_r($foo);
       die;
    }

Returns “NULL”

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T19:07:42+00:00Added an answer on June 14, 2026 at 7:07 pm
    $input = new JInput;
    $name = $input->get('name', '', 'post');
    $country = $input->get('country', '', 'post');
    // etc.
    

    Then you can use a series of JInput class methods for specific purposes:

     // method      integer  getInt()       getInt($name, $default = null)    Get a signed integer.
     // method      integer  getUint()      getUint($name, $default = null)   Get an unsigned integer.
     // method      float    getFloat()     getFloat($name, $default = null)  Get a floating-point number.
     // method      boolean  getBool()      getBool($name, $default = null)   Get a boolean.
     // method      string   getWord()      getWord($name, $default = null)
     // method      string   getAlnum()     getAlnum($name, $default = null)
     // method      string   getCmd()       getCmd($name, $default = null)
     // method      string   getBase64()    getBase64($name, $default = null)
     // method      string   getString()    getString($name, $default = null)
     // method      string   getHtml()      getHtml($name, $default = null)
     // method      string   getPath()      getPath($name, $default = null)
     // method      string   getUsername()  getUsername($name, $default = null)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to make sure that everything I know about UTF-8 is correct.
Here's a basic view of what my html looks like: <form> <div id=part1> //
I modified this simple countdown timer form here: https://github.com/lunaryorn/snippets/blob/master/qt4/countdown.py as follows. Now I want
I have this form right here, where the user will add the start date
I have this $data array: (built on a shell, not a form) (debugged here)
here is what my code looks like i have two forms: class Form_1 extends
Look at this: $('form).submit(function (event) { $(':input.required').trigger('blur'); var num = $('.warning', this).length; alert(num);//Focus here!
To give more information I am using the modular form here: http://jqueryui.com/demos/dialog/#modal-form `b(e.target).zIndex` is
I've been putting together my first Ajax powered form ( here ), with the
Summary Below is the full question (a bit complicated in its full form) here's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.