PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am trying to implement a function similar to the Preview button we have on the "post new topic" page of this forum whereby data entered by user can be previewed (on the same page) before submitting.
Any suggestions are welcome!
Thanks
Niekerk
Thanks to all the contributors to this thread so far.
What i am trying to do is to pass the text entered into the textarea to a script that formats the text (i have this script) and then displays it with a chance for the user to edit or submit
Depending on the implmentation, I usually send people to a "confirm" page. They submit the data, go to a confirm page and see the data formatted as it will be durning the output and then confirms that entry or edits it. This also gives me level one of data validation to make sure they inputed all the correct data. Edit takes them back to the form with the fields populated with their information. Confirmig the page sends it back through data validation then INSERTs or UPDATEs the database. Simple and works well. Requires an extra click or two but no real additional typing.