amp_rsa Posted August 29, 2007 Share Posted August 29, 2007 hi im a pretty new to coding (im more of a designer ), i need a simple script for a website im designing! here is a basic drawing of what i need: Basically i want users to be able to enter their info in to the text feilds and when they are submited, thay are automatically displayed in the top table, and every new submission is displayed under the one before if you get what im saying!! im guessing it'll use a mysql database, which i have, so there is no prob there! I have no clue where to start, as i said im not a coder! ANY HELP would be AWESOME!!! Thanx Quote Link to comment https://forums.phpfreaks.com/topic/67156-simple-php-form-help/ Share on other sites More sharing options...
uwannadonkey Posted August 29, 2007 Share Posted August 29, 2007 ok, ill give it a shot! i need mroe specifications on who you wish to view the table, BUT: if you do: i would suggest, make a new table, name it whatever you wish, add the values username, character name, item and item desc after that, in your html, make it so that form method is either POST or GET, and each text field has a diff value: IE first is username, second is character name, etc NOW, when its submitted, check to see if each field is set, using the isset feature: if(!isset($_POST/$_GET[fieldname]) { Echo ' you didnt fill out the field'; } do that for every field, NOW, for the table where it shows what previously happened, connect to DB, Select your DB, then use the $query= mysql_query(SELECT * from `tablename`) , use a while function: while($row = mysql_fetch_array($query)) { and using that function, echo each row into the table, using PHP and html Quote Link to comment https://forums.phpfreaks.com/topic/67156-simple-php-form-help/#findComment-336805 Share on other sites More sharing options...
amp_rsa Posted August 29, 2007 Author Share Posted August 29, 2007 Thanx..for help but im still a bit confused! Like i said im a total noob ! i use joomla cms and want this script on a static php/html page so any 1 can just add lines of text, for other members to see! Quote Link to comment https://forums.phpfreaks.com/topic/67156-simple-php-form-help/#findComment-337027 Share on other sites More sharing options...
amp_rsa Posted August 29, 2007 Author Share Posted August 29, 2007 Im still very confused any more help would be great....i'll buy u a beer! Quote Link to comment https://forums.phpfreaks.com/topic/67156-simple-php-form-help/#findComment-337177 Share on other sites More sharing options...
Jessica Posted August 29, 2007 Share Posted August 29, 2007 Either hire a programmer, or start smaller. Read tutorials on PHP/MySQL. You can't jump into the deep end without a swimming lesson (HAHA I made a metaphor. Sweet.) Quote Link to comment https://forums.phpfreaks.com/topic/67156-simple-php-form-help/#findComment-337193 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.