[FX.php List] PHP error help

Gjermund Gusland Thorsen ggt667 at gmail.com
Fri Jun 27 15:23:16 MDT 2008


print_r( $suerveyijnResult );

2008/6/27 CSInfo <CSinfo at comcast.net>:
> After submitting a simple form using POST data to a file called
> submitnew.php I get a PHP error No Action Taken. I know the POST data is
> valid.
> Any ideas where to start? Thank you, John Funk
>
> Result of Form Submit:
> ID: 01
> Name: My Name
> Location: My Location
> Answer1: Exceeds Expectations
> No Action Taken
>
> Below is my submitnew.php file:
> <?php
> include_once('FX/FX.php');
> //not needed yet
> //include_once('FX/server_data.php');
>
> $RAMSurveyID=$_POST['RAMSurveyID'];
> $Name=$_POST['Name'];
> $Location =$_POST['Location'];
> $A1=$_POST['A1'];
> //test for post data
> echo 'ID: '.$RAMSurveyID.'<br>';
> echo 'Name: '.$Name.'<br>';
> echo 'Location: '.$Location.'<br>';
> echo 'Answer1: '.$A1.'<br>';
>
> $groupSize='50';
> $suerveyijn=new FX('120.70.10.14','80','FMPro9');
> $suerveyijn->SetDBData('RAMNet_Surveys.fp7','web_in',$groupSize);
> $suerveyijn->SetDBPassword('webuser','webpass');
> $suerveyijn->AddDBParam('Name',$Name);
> $suerveyijn->AddDBParam('Location',$Location);
> $suerveyijn->AddDBParam('A1',$A1);
> $suerveyijnResult=$suerveyijn->FMNew();
>
> echo $suerveyijnResult['errorCode'];
> foreach($suerveyijnResult['data'] as $key=>$suerveyijnData);
>
> ?>
> <html>
> <head>
> </head>
> <body>
> <table>
> <tr>
> <td>Name</td>
> <td>Location</td>
> <td>A1</td>
> </tr>
> <tr><td><?php echo $suerveyijnData['Name'][0]; ?></td>
> <td><?php echo $suerveyijnData['Location'][0]; ?></td>
> <td><?php echo $suerveyijnData['A1'][0]; ?></td></tr>
> </table>
> <br>
> </body>
> </html>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>


More information about the FX.php_List mailing list