jtigue
-
Posts
5 -
Joined
-
Last visited
Posts posted by jtigue
-
-
Thanks for responding. Is there a way the stored values can be selected dynamically? Is it similar to making sticky forms?
-
I'm not sure if this is even possible but I would like to modify script 10.3. I have created a simple running log where users can input the details of their run using a form that includes text input, radio buttons and drop-down menus. Is it possible to use the same or similar form to edit/update their records? I have no problem retrieving the values for the text boxes but I don't know how the form is supposed to show the values from the drop down menus or to "select" the appropriate radio button.
Any help would be appreciated. Thanks!
-
Thank you for responding. I have fixed it.
-
I am trying to create a form that includes two drop-down select menus that each display records from their respective table from a database. Each drop-down menu uses the require statement to call my mysqli_connect script as does the overall form when it is called to insert the records, making 3 total require statements.
When I tested the page it worked on the testing server but now I receive Constant DB_NAME, DB_HOST, DB_PASSWORD, and DB_USER already defined errors now that the site is live.
I have tried using require_once on one, two , or all three calls instead of require but then one of my drop-down menus stops working and seem to get the same message.
Any help would be appreciated.
Editing Existing Records
in PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (4th Edition)
Posted
Here is a small part of what I am trying to do. When a user wants to edit their running log entries, I would like this select menu to appear with their previously selected value already selected. Like I mentioned earlier, I don't have any problem recalling text values using value="' . $row[0] . '". My issue is trying to figure out how to do it with select menus and/or radio menus.