| | |
Php insert to html
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: May 2009
Posts: 4
Reputation:
Solved Threads: 0
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.
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.
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
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.
![]() |
Similar Threads
- Web Developer (PHP, MySQL, HTML, CSS) Wanted in London (Web Development Job Offers)
- php code within <html> not showing (PHP)
- How do I output information from a PHP page to an HTML page? (PHP)
- Php page containing html form to sql database (PHP)
- PHP codes in HTML (PHP)
- Redirection (PHP)
- Calling a PHP function from HTML menu (PHP)
- dynamically generated textboxes & radio buttons php, insert into db (PHP)
Other Threads in the PHP Forum
- Previous Thread: include files
- Next Thread: Split a string into two parts?
| Thread Tools | Search this Thread |
.htaccess ajax apache api array arrays beginner binary broken cache cakephp checkbox class cms code confirm cron curl customizableitems database date display dynamic echo email error external file files folder form forms forum function functions google headmethod href htaccess html iframe image include insert integration ip java javascript joomla limit link login loop mail malfunction menu mlm mod_rewrite multiple mysql neutrality oop paypal pdf php phpmysql play problem query question radio random recursion regex remote root script search select server sessions sms soap source space sql syntax system table tutorial update upload url validation validator variable video web xml youtube






