Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

how to make a forms results creating a new page

form results creating a new page

10:39 am on Jul 7, 2013 (gmt 0)

New User

5+ Year Member

joined:July 3, 2013
posts: 3
votes: 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]

3:42 pm on July 7, 2013 (gmt 0)


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

joined:July 24, 2001
posts: 15756
votes: 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
10:52 pm on July 7, 2013 (gmt 0)

New User

5+ Year Member

joined:July 7, 2013
votes: 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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members