eguzik
11-24-2000, 10:29 AM
Hi,
I'm using PHP and MySQL, and am having a slight problem with a submit box for a project I'm working on. Users submit information via this box (which is sent to a MySQL database), and are able to edit this information until they are satisfied with what they've entered. I would like the editied entry to appear within the entry box as soon as it is submitted, but this isn't happening at this point. Rather, after the information is submitted, the previous entry appears in the box, until the browser is manually refreshed. At that point, the updated entry appears in the entry box (which is what I'd like to happen as soon as the entry is submitted). Any ideas? The code is listed below:
<form method="post" action="<?= HrefLink( SYS_SCRIPT_NAME ); ?>">
<input type="hidden" name="<?= SYS_FORM_ACT_CMD; ?>" value="update">
<table border="0" cellpadding="3" cellspacing="0">
<tr>
<td><textarea name="formUnderlyingProblem" cols="35" rows="20" wrap="virtual" style="width: 410px; height: 340px;"><?= htmlspecialchars( $ARR_BOOKLET_INFO[ 'UnderlyingProblem' ] ); ?></textarea></td>
</tr>
<tr align="center">
<td><input type="submit" value="<?= LANG_BUTTON_UNDERLYINGPROBLEM; ?>" class="FormButton"></td>
</tr>
</form>
I'm using PHP and MySQL, and am having a slight problem with a submit box for a project I'm working on. Users submit information via this box (which is sent to a MySQL database), and are able to edit this information until they are satisfied with what they've entered. I would like the editied entry to appear within the entry box as soon as it is submitted, but this isn't happening at this point. Rather, after the information is submitted, the previous entry appears in the box, until the browser is manually refreshed. At that point, the updated entry appears in the entry box (which is what I'd like to happen as soon as the entry is submitted). Any ideas? The code is listed below:
<form method="post" action="<?= HrefLink( SYS_SCRIPT_NAME ); ?>">
<input type="hidden" name="<?= SYS_FORM_ACT_CMD; ?>" value="update">
<table border="0" cellpadding="3" cellspacing="0">
<tr>
<td><textarea name="formUnderlyingProblem" cols="35" rows="20" wrap="virtual" style="width: 410px; height: 340px;"><?= htmlspecialchars( $ARR_BOOKLET_INFO[ 'UnderlyingProblem' ] ); ?></textarea></td>
</tr>
<tr align="center">
<td><input type="submit" value="<?= LANG_BUTTON_UNDERLYINGPROBLEM; ?>" class="FormButton"></td>
</tr>
</form>