Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Formpanel to PHP

  1. #11
    Sencha User
    Join Date
    Jul 2008
    Posts
    49

    Default

    I know my php is wrong (at least i think that i do)

    my problem is what to do about it

    is the formpanel submitting a json file, or a xml or...?
    should i use $_POST or $_GET on the php side

    these may seem stupid questions (and they probably are) but for a newbie like me it proves very difficutl to find the answer

  2. #12
    Sencha User
    Join Date
    Jul 2008
    Posts
    49

    Default

    Quote Originally Posted by Animal View Post
    In the browser?

    You are supposed to be submitting data and processing it on the server in the normal PHP way.

    There is no such thing as a "7636" error.

    Your PHP is wrong.
    no actually it is a syntax error on line 7636 which is in the json encode part of the ext code.

    I assume as well that the error is on the php side

    The kind of questions that i need an answer to:

    - is formpanel submitting data as json, xml or anything else
    - should i use $_POST or $_GET on the php side

    these may all be quite dummy questions but for a newbie it seems very difficult to find the answers to this anywhere. The information on this site concentrates almost entirely on receiving data from a server, not on how a server can access sublitted data from ext.

  3. #13
    Sencha Premium Member steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,675

    Default

    you don't know how arrays are read in php???
    $_POST['value']

    you should read some beginner tutorial first.
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  4. #14
    Sencha User
    Join Date
    Jul 2008
    Posts
    49

    Default

    Quote Originally Posted by steffenk View Post
    you don't know how arrays are read in php???
    $_POST['value']

    you should read some beginner tutorial first.

    I know quite a bit of PHP, that is not the problem.

    At least you confirm now that a $_POST['value'] should do the trick. That is what I was thinking and I have tried that already.

    The problem is that it does not work and $_GET and all the other things that i can think of do not work either.

    I expected that the Ext field with name 'title' would be available in php with $_POST['title']. Is that assumption not correct?

  5. #15
    Sencha Premium Member steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,675

    Default

    why not debug it?
    PHP Code:
    echo 'POST: <pre>' print_r($_POSTtrue) . '</pre>'
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •