×

Discussion Board

Results 1 to 4 of 4

Hybrid View

  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    2

    Unhappy Problem with form input ($_POST and PHP)

    Hello everyone. I'm building a small client app for E90 to test PAMP's capabilities but I can't get the globals to work. I need to input data from HTML-form using POST-method in PHP and then save this data to the local MySQL-database. Unfortunately I have not had very much success since these do not return anything to $selite on E90:

    $selite = $HTTP_POST_VARS[selite];
    $selite = $_POST[selite];

    My php-code works fine on other platforms, so I don't think the problem lies there.

    Is it just me or is this somekind of known issue? Has anyone else had the same problem? Register_globals at php.ini are enabled and variables_order = "EGPCS".

    Thanks!


    Edit:
    I tested changing the method to GET and that seems to be working okay. I think there might be some issues related to POST-method with PAMP (S60). Any ideas how this could be sorted?

    To have it fixed would be nice since GET-method has it's character limitations and the inputted data is visible to everyone.
    Last edited by Tungsten; 2008-04-14 at 10:43.

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    457

    Re: Problem with form input ($_POST and PHP)

    Sorry for not responding earlier, but I've out of the office for a while.

    Quote Originally Posted by Tungsten View Post
    I tested changing the method to GET and that seems to be working okay. I think there might be some issues related to POST-method with PAMP (S60).
    Any ideas how this could be sorted?
    Yes, there are issues related to the POST-method. Depending on whether the header and body of the POST request are sent by the browser in one or two TCP/IP packets, things may or may not work.

    That problem should have been fixed now, so in the next release your code will probably start to work.

    Meanwhile, if you havn't already, try using a different browser. That may have an impact.

    Johan

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    47

    Re: Problem with form input ($_POST and PHP)

    When is the new release expected to be awailable?

    I am experiencing a similar problem with mod_python scripts executed through PAMP. A script that works well with MWS seems to get no POST input when access through PAMP.

    Do you think this is the same issue and will be fixed in the next release as well?

    Also is there any way of executing python scripts through PHP?

    best regards,
    Magnus

  4. #4
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    457

    Re: Problem with form input ($_POST and PHP)

    Quote Originally Posted by maggias View Post
    When is the new release expected to be awailable?
    Not too far into the future.

    But if you have access to the ARM RVCT toolchain, you can build it yourself already. Namely, all PAMP development takes place using the repository at SourceForge, so you can at any point pull the source from there.
    Do you think this is the same issue and will be fixed in the next release as well?
    Yes, it's likely to be the same issue.
    Also is there any way of executing python scripts through PHP?
    I don't think there's any way you can do that currently.

    Johan

Similar Threads

  1. PHP to WML problem
    By dermeister666 in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2006-12-30, 18:15
  2. PHP session problem help! Plz~~
    By ai_pinkflower in forum Browsing and Mark-ups
    Replies: 5
    Last Post: 2006-01-24, 17:17
  3. Php Problem: cannot load http://www.aaa.com/op.php 500 server error
    By plmanikandan in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2004-12-01, 00:45
  4. postfield problem in php with WML, please help!
    By datareceived in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2002-12-14, 07:02
  5. php query problem in nokia
    By datareceived in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2002-12-10, 11:43

Posting Permissions

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