Wrox Programmer Forums
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 31st, 2007, 12:45 PM
Registered User
 
Join Date: Jul 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default help for php

Hello everyone! This is regarding HTML forms, PHP & MySQL.
>>>
>>> I'm just learning PHP & MySQL. I do know HTML though.
>>>
>>> My Question:
>>>
>>> How do you create an html form that goes to a preview screen and then
>>> allows the user to move back to the form if they made any errors and
>>> corrections are needed or click the send button to submit the form?
>>> The
>>> form's contents are then inserted into a database table.
>>>
>>> The actions I want the user to take are as follows:
>>> 1) Fill out form.
>>> 2) Press Preview Button (the only button on that page).
>>> 3) Look over preview of text entered. (this should be on a new page
>>> and
>>> appear as text, not text in form fields.)
>>> 4a) If user finds mistake in text of Preview, click Edit button (or
>>> link
>>> or Browser back button) to go back to form and make changes. Then user
>>> repeats steps 1 (editing not re-entering data) through 4.
>>> 4b) If user does not find mistakes in text of Preview, clicks submit
>>> button that INSERTS form data into MySQL table.
>>> 5) User gets a new page says "thank you. form submitted."
>>>
>>> I already know how to INSERT form data into a table and ECHO the data
>>> onto a page after the data was inserted, but I can't figure out how to
>>> add the Preview in the middle before inserting the data.
>>>
>>>
>>> Many thanks to anyone who can help me with this!
 
Old August 7th, 2007, 05:59 AM
Friend of Wrox
 
Join Date: Nov 2005
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts
Default

first things first. first build your pages in plain html. then start on the php validation and then start on the insert queries to mysql. once you have some code ppl can help out

__________________________________________________ ________
I am DJ Kat...that's my name. Its a D and a J and a Kat with a K.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Beg. PHP 5 > Ch. 11 - fetch_field.php crater BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 0 January 2nd, 2007 12:20 PM
PHP Warning: PHP Startup: Unable to load dynamic l surendran Beginning PHP 1 May 29th, 2006 08:49 AM
begin php & mysql - chapter 12, user_form.php jon_stubber Beginning PHP 1 March 9th, 2006 10:57 AM
Error: movie.php & commit.php on p182-186, ch6 willburke BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 October 12th, 2004 02:48 PM
Ch. 1: PHP Installation Troubles: php3 vs php manjito BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 4 June 12th, 2003 03:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.