Keeping prepopulated information in textarea after errors & 1 more related issue

4 posts by 2 authors in: Forums > CMS Builder
Last Post: July 29, 2020   (RSS)

By gregThomas - July 28, 2020

Hey Jerry, sorry I've been slow to get back to you on this one. 

I think I've worked out the source of the issue, on line 146 the form starts that submits the updater record, but it doesn't include the record number. So when the form submits the page can no longer find the record it's supposed to be updating. 

If you change line 145 from this:

<form method="post" action="?">
  <input type="hidden" name="save" value="1" />
  <table border="0" cellspacing="0" cellpadding="2">

to this:

<form method="post" action="?">
  <input type="hidden" name="save" value="1" />
  <input type="hidden" name="recNum" value="<?php echo intval($recNum); ?>" />
  <table border="0" cellspacing="0" cellpadding="2">

Let me know if this resolves this issue.

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com

By gkornbluth - July 29, 2020

Hi Greg,

Thanks very much for catching that.

With a few more code changes the page seems to work now. 

Once I've finished adding the additional functionality, I'll post the result.

Best,

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By gregThomas - July 29, 2020

Thanks Jerry! Good to hear it's up and running.

Greg Thomas







PHP Programmer - interactivetools.com