HTML Page Updates

Discussing Html . Code , Software , other

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 6
Joined: Mon Jul 22, 2013 10:42 am

Wed Jul 24, 2013 9:27 am

Hi All,

I am quite new to using both html and PHP so please excuse my ignorance.

I have started a project that requires a user interface where the user can configure a piece of hardware using various radio buttons and checkboxes. The interface has a single 'submit' button which writes the configuration to a MySQL database. I have completed all of the above and it works well however, I have a couple of useability issues that I need some advice on.

At the moment when I press the submit button a .php script is actioned that carries out the write to the database. In the .php script I have various error reports and echo's that are sent to the user so they are aware of the processes that have been achieved, however, they are shown on a new page and therefore navigate the user away from the interface. There are two things that I would like the user interface to do and despite spending alot of time trying to find a similar example to help me through Google I can't seem to find what I need.

What I am trying to achieve is that when the 'submit' button is pressed the database creation is done in the background and the main user interface html page remains in view to the user. Additionally I would like the error reporting and echos to be shown in a text box within this page also. I have looked into using the refresh command which I assume I will have to do to get the additional text updated into the page but I am unsure how I can use this without losing the configuration of the checkboxes and radio buttons that have been set by the user (I assume on a refresh they will return to default positions).

If anyone has done something similar or has any ideas I would be very grateful to get some pointers of how best to approach the problem. In the meantime I will keep hunting.

Thanks :)
User avatar
php-forum Fan User
php-forum Fan User
Posts: 65
Joined: Mon Jun 13, 2011 9:25 pm
Location: Pasig City, Philippines

Mon Jun 08, 2015 11:39 pm

HiAimSkyward !
You can use firebug as well for you to inspect the line of codes that you encounter bugs.
Post Reply