homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

how to make a forms results creating a new page
form results creating a new page

Msg#: 4590946 posted 10:39 am on Jul 7, 2013 (gmt 0)

hi guys I have only just very recently started working in php and wow what a whole new world that opened to me its fab,
however here is my newest challenge;
I have a basic page which is to display a list for the site user to keep up with their player point awards,

stats last updated on: "date here"
player nic1 - 100
player nic2 - 100
player nic3 - 100
player nic4 - 100
player nic5 - 100
player nic6 - 100

ok so that's basically what the user needs to have in the end,
now what I need to do is my form when submitted needs to post those given results into this page,
I was thinking it may be easier to simple use the functions to write the page over each time the form is submitted if so how I do it please here is a link to my page for a copy of needed end results

I don't mind if the end page is .html or .php

[edited by: jatar_k at 3:36 pm (utc) on Jul 7, 2013]
[edit reason] removed url [/edit]



WebmasterWorld Administrator jatar_k us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 4590946 posted 3:42 pm on Jul 7, 2013 (gmt 0)

you could rewrite it every time if you like

you would use
fopen to get a file pointer to the file
fread to get the current data from the file
fwrite to write new data to the file
fclose to close your file pointer

you could also use a small database to track when changes were made and just load them on this page


Msg#: 4590946 posted 10:52 pm on Jul 7, 2013 (gmt 0)

personally i would use a mysql database to keep track of the data for each user and then load the data on page load from that database. that way your form can update the information in the database

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved