[FX.php List] Basic help

CSInfo CSinfo at comcast.net
Tue May 27 19:54:32 MDT 2008


I am creating a very basic site to login by email and password, then edit or
display the users info from their FM record. I am having a rough time
getting the edit portion to work.I know the connection is valid, the
display.php works fine. Below is my code for the edit.php page. Anybody care
to debug? Sometime a second set of eyes help.
I can send the details.php if needed.
Thanks,
John Funk
 
 
<?php
include_once('FX/FX.php');
$Bride_Email=$_GET['Bride_Email']; // from the index page
$Bride_Password=$_GET['Bride_Password'];

//$Bride_Email='username'; //hard coded for testing as stand alone
//$Bride_Password='pass'; //hard coded for testing as stand alone

$groupSize='1';
$edit_account=new FX('64.62.67.186','80','FMPro7');
//this ip is only open to the website
$edit_account->SetDBData('BG_Clients.fp7','BGDB Export',$groupSize);
$edit_account->SetDBPassword('iona','Admin');
$edit_account->AddDBParam( Bride_Email, $Bride_Email);
$edit_account->AddDBParam( Bride_Password, $Bride_Password);
$edit_accountResult=$edit_account->FMEdit();
 
foreach($edit_accountResult['data'] as $key=>$edit_accountData);
 
?>
<html>
<head>
 
</head>
<body>
<table>
<tr>
<td>Bride_Email</td></tr>
<tr><td><?php echo $edit_accountData['Bride_Last_Name'][0]; ?></td></tr>
</table>
<form name="edit" method="post" action="details.php">
  <table>
    <tr> 
      <th>Bride_Email</th>
      <td> <input type="text" name="Bride_Last_Name" value= <?php echo
$edit_accountData['Bride_Last_Name'][0]; ?> /> </td>
    </tr>
    <tr> 
      <th>&nbsp;</th>
      <td> <input type="submit" name="edit_submit" value="Submit" /> </td>
    </tr>
  </table>
</form> 
<br>
</body>
</html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20080527/7b595659/attachment.html


More information about the FX.php_List mailing list