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 6148223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:14:35+00:00 2026-05-23T19:14:35+00:00

I have another question for the masses out there regarding trying to input values

  • 0

I have another question for the masses out there regarding trying to input values from a text input box to a custom class. I currently have a custom class named Company with properties that correspond to values in a MySQL database.

So I created an input UI on the client application that calls out for Address, Name, Zip, Phone, etc. – Then there is a button to submit to values to the database for creation. Here’s my question:

How do I take each individual textinput.text property and ‘mesh’ them all together to a Company object to send to the server? The PHP that is written takes in an argument like this:

public function createNewCompany (Company $item) { .......

So is that even the right way to send them in? Or???

There are a total of 11 things (properties) that need to be submitted.
As usual – any help is GREATLY appreciated.

Thank you in advance for your time and assistance!

-CS

  • 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-05-23T19:14:36+00:00Added an answer on May 23, 2026 at 7:14 pm

    Here’s an example I think you’ll find helpful :

    http://wadearnold.com/blog/zend-amf-links

    If you take a peek at that, it’s doing the exact type of stuff you’re trying to do, very clearly. I’ll summarize of the the basic parts for you…

    What you need to do is transfer the input’s into a value object and send that object off to the server.

    A value object is just an object you create that holds values (great name, eh?) You map this to an object of similar properties on the back end with the RemoteClass call:

    package
    {
    [Bindable]
    [RemoteClass(alias="ContactVO")]
    public class ContactVO
    {
        public var id:int;
        public var firstname:String;
        public var lastname:String;
        public var email:String;
        public var mobile:String;
    
    }
    }
    

    On the server you have that same value object definition:

    <?php
    class Contact
    {
      public $id = 0;
      public $firstname = "";
      public $lastname = "";
      public $email = "";
      public $mobile = "";
    }
    ?>
    

    As for the transport, you’re going to use a RemoteObject which transports requests to your endpoint:

    <Declarations>
        <RemoteObject endpoint="http://localhost/" id="myservice" fault="faultHandler(event)" 
            source="ContactDAO" destination="zend">
            <method name="getContacts" result="contactsHandler(event)" />
        </RemoteObject>      
    </Declarations>
    

    This maps to a method on your backend, in ContactDAO.php in this case :

    <?php
    require_once 'Contact.php';
    
    class ContactDAO
    {
      function createContact( $contact )
      {
        ...
      }    
    }
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this kind of follows on from another question of mine. Basically, once I have
I have another question for you. I have a python class with a list
As described in another question , I have a set of Model objects and
Ok another WPF question, well I guess this is just general .NET. I have
Another basic Rails question: I have a database table that needs to contain references
Now I have seen this question in another forum but it didn't had an
I'm supporting an existing application written by another developer and I have a question
Hey! I am not trying to push my luck here but I have another
I have a situation where another developer is including source files from a project
I have another question about restoring application state, on the iPhone. Simple data (like

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.