There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Automatically-Updating Webpage


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
rabidroach90's Avatar
Junior Member with 10 posts.
 
Join Date: Nov 2006
15-Nov-2006, 10:24 PM #1
Automatically-Updating Webpage
Hello,

I am trying to set up a webpage that automatically updates in response to an input, displaying the newly-inputted information, and have no idea how to do this. The website has cPanel, and mysql and php capabilities, and I think this idea has something to do with these, but I'm not quite sure.

Essentially, I want a sign-up page for events. The page will have separate categories to sign up for, and when one signs up, the categories should be updated and viewable on the webpage in order for others to see. For example, the page could have a chess and checkers section. At the bottom of the page would be a form that would allow one to pick which one to register for, enter name, etc, and when submitted, the results would be displayed on the page, along with others who had already registered.

If anyone knows how to accomplish this, please post!

Thanks!
Rockn's Avatar
Computer Specs
Distinguished Member with 17,888 posts.
 
Join Date: Jul 2001
Location: Mexico of the North, MN
Experience: Disenfranchised American Male
16-Nov-2006, 08:17 AM #2
You need some server side scripting like ASP or PHP and a database to hold the content.
rabidroach90's Avatar
Junior Member with 10 posts.
 
Join Date: Nov 2006
16-Nov-2006, 04:34 PM #3
Ok, is there anyone who knows how to engineer the PHP? I have absolutely no idea how to do it, and what I'd probably do is just look up random scripts and try to piece them together on a guess-and-check method, but I'd appreciate it if someone just knew how I could do it; it would save me a whole lot of time.

Thanks again,

-Roshan
MMJ's Avatar
MMJ MMJ is offline
Distinguished Member with 3,208 posts.
 
Join Date: Oct 2006
18-Nov-2006, 08:15 AM #4
"I am trying to set up a webpage that automatically updates in response to an input"

I don't think this is possible since the server would have to communicate with the computers.
Eriksrocks's Avatar
Computer Specs
Senior Member with 1,859 posts.
 
Join Date: Aug 2005
Location: Minnesota
Experience: Advanced
18-Nov-2006, 02:18 PM #5
Quote:
Originally Posted by MMJ
I don't think this is possible since the server would have to communicate with the computers.
Sure it is. It's called a browser.
brendandonhu's Avatar
Distinguished Member with 15,988 posts.
 
Join Date: Jul 2002
Location: Ann Arbor, MI
Experience: Advanced
18-Nov-2006, 04:25 PM #6
MMJ's Avatar
MMJ MMJ is offline
Distinguished Member with 3,208 posts.
 
Join Date: Oct 2006
19-Nov-2006, 12:02 AM #7
Quote:
Originally Posted by Eriksrocks
Sure it is. It's called a browser.
I don't think you understand me. Lets say I come on this webpage for 5 min then how would the server tell my browser to refresh the page? it would have to have some automatic refreshing not refreshing when someone inputs data then then server tells all the browsers to refresh since someone has inputed

(sorry for the mess i am in a rush
__________________
Guys, please, this is free tech support, act accordingly.

afk for a while
Rockn's Avatar
Computer Specs
Distinguished Member with 17,888 posts.
 
Join Date: Jul 2001
Location: Mexico of the North, MN
Experience: Disenfranchised American Male
19-Nov-2006, 12:46 PM #8
Refreshing a browser window is a client side operation. Any data that is input into the database will be reflected to the client when they open that page. If it is updated while they are viewing the page it will not be reflected until the browser is refreshed. You can write some jave script into your pages to refresh the pages, but unless your content is constantly changing there is really no point to adding it. How do you think this web site functions, there are hundreds of entries a minute.
__________________
**Disclaimer** Anything below this line ^ is part of my signature for those that may be confused

Sadly, there are no integers on this scale, so your gangly adolescent attempt to be clever has proved futile....Dieter

I have the right "NOT" to be tolerant of others because they are different, weird, or tick me off.....Parody of Andy Rooney

There are no stupid questions, but there are a LOT of inquisitive idiots.
MMJ's Avatar
MMJ MMJ is offline
Distinguished Member with 3,208 posts.
 
Join Date: Oct 2006
19-Nov-2006, 12:53 PM #9
Basically the server can't tell the browser to refresh. There has to be a script to do so. So when the server receives data it can't tell all the browsers to refresh since it received new data.
cnelson04's Avatar
Senior Member with 898 posts.
 
Join Date: Dec 2003
19-Nov-2006, 01:37 PM #10
Just get a little java script code to refresh the page every 5 minutes, or 10, or whatever time you need. I'm sure if you use PHP to refresh the page you can call on a MySQL DB, and use 'if' 'else' statments but i don't know much about PHP.
__________________
Help me, out visit my site! Vision Studios
-Cnelson. Founder and Admin of Vision Studios.
www.visionstudios.be, graphics, tutorials, php, html, css. we help you!
MMJ's Avatar
MMJ MMJ is offline
Distinguished Member with 3,208 posts.
 
Join Date: Oct 2006
19-Nov-2006, 02:50 PM #11
Yup, that would probably be your best bet.
cnelson04's Avatar
Senior Member with 898 posts.
 
Join Date: Dec 2003
20-Nov-2006, 08:15 PM #12
Someone might want to point him in the direction to start to do this.. i have no idea how to write the code, but if someone could you could use my idea as a start. -cnelson.
rabidroach90's Avatar
Junior Member with 10 posts.
 
Join Date: Nov 2006
20-Nov-2006, 09:35 PM #13
Heh, that would be nice
Eriksrocks's Avatar
Computer Specs
Senior Member with 1,859 posts.
 
Join Date: Aug 2005
Location: Minnesota
Experience: Advanced
21-Nov-2006, 08:31 PM #14
Quote:
Originally Posted by rabidroach90
Ok, is there anyone who knows how to engineer the PHP? I have absolutely no idea how to do it, and what I'd probably do is just look up random scripts and try to piece them together on a guess-and-check method, but I'd appreciate it if someone just knew how I could do it; it would save me a whole lot of time.

Thanks again,

-Roshan
Probably the best way would just be to learn it yourself. It's really not that complicated as you might think. Probably getting a book would be the best way. For me, I found PHP5 in Easy Steps really nice, it would have everything you need to know in it, it's really not that hard. But first make sure your on an Apache/Linux server before you start learning PHP, otherwise you would need to learn ASP instead (which I have no knowledge of whatsoever. )

I would write it for you, but it takes a while and I wouldn't know the exact finished product that you were looking for.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 12:02 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.