Php insert to html

Thread Solved

Join Date: May 2009
Posts: 4
Reputation: thecodingbee is an unknown quantity at this point 
Solved Threads: 0
thecodingbee thecodingbee is offline Offline
Newbie Poster

Php insert to html

 
0
  #1
May 29th, 2009
If you have seen igoogle, you will know what i am doing!
The idea is that it saves the co-ordinates of the box that you can move into two text files : usercoord.txt-x axis & usercoord2.txt-y axis! can anyone tell me how i can load the coordinates back, from the text files?, into the page to position the box? Help much appreciated.
P.S website link http://howscienceworks.x10hosting.co...op_simple.html
Please help me, i am new to Php but am reasonable at html.
Last edited by thecodingbee; May 29th, 2009 at 2:08 pm.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 868
Reputation: Airshow will become famous soon enough Airshow will become famous soon enough 
Solved Threads: 124
Airshow's Avatar
Airshow Airshow is offline Offline
Practically a Posting Shark

Re: Php insert to html

 
0
  #2
May 29th, 2009
Thecodingbee,

As I'm sure you realise, you need to store all user configuration settings somewhere - the question is where?

You could use a cookie, which would tie a particular user configuration to a particular computer/logon. Not particularly useful for many people.

The other main option is to store settings server-side. You could tie settings to ip addresses but that's no more useful than using a cookie (and for dialup users no use at all). The solution is to introduce a logon schema, such that the server-side code (your php) knows which settings to retrieve from the database on each occasion.

If you follow this approach, then you will need to use something like mysql (often included in php-enabled hosting packages). I've not done a logon schema from scratch but am sure there are off-the-peg downloadable examples out there. Alternatively use a framework such as zen or cake, which are tricky to learn but have lots of goodies either built-in or available as third-party extensions.

Good luck.

Airshow
Last edited by Airshow; May 29th, 2009 at 2:52 pm.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 1,023
Reputation: ardav will become famous soon enough ardav will become famous soon enough 
Solved Threads: 131
ardav's Avatar
ardav ardav is offline Offline
Veteran Poster

Re: Php insert to html

 
0
  #3
May 29th, 2009
Your website is using JS I take it? If so, ask in the Javascript forum unless you want to go server-side/ajax. At which technology are you aiming?
Happy Humbugging Christmas
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC