473,382 Members | 1,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

How to update a text block using PHP?

I'm building a website for a food truck. Their menu changes frequently. I'm trying to build a simple backend page that they can login to and update their menu. I wanted to do this by displaying two pages in iframes in small panes on the actual site. The backend menuadmin page will allow them to type in the new menu, as it changes.

So I need to know how to use PHP to just print text on a site and have it stay there until new text is submitted. So far I've got the menuadmin page with the two forms for each menu. I've figured out how to post it to the menu pages but the text doesn't stay. I'd also like to know how to keep it on the menuadmin page without it going to the menu pages when you hit submit. I have the pages on the menuadmin page in iframes and I can preview the changes by right click> reload.

I've never worked with forms really so I hope I've done any of this right.

http://comp.uark.edu/~cdavies/menu/menuadmin.php
Jan 13 '11 #1
1 1478
dlite922
1,584 Expert 1GB
You need to store the text somewhere on the server. What it sounds like is you submit the form and the page that displays the menu pulls it from the form submitted-globals (such as GET or POST). That's not really "storing" it anywhere permanently. GET and POST variables get erased with every load.

You need to save the data to a database or a file. If there is high traffic on the site and it changes frequently, then you definitely need a database.


Dan
Jan 14 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: sk89q | last post by:
I have this large text block, but I would like to split it into smaller ones by a number of characters. It needs to _split at whole words_, and not just randomly in the middle of a word. What's...
4
by: Shane | last post by:
I would like to update Access by using a txtBox. Is it possible to update Access this way? Example: If I selected the txtBox and input a line of text I would like that line of text to be sent...
0
by: Sakharam Phapale | last post by:
Hi All, I am developing my own text editor using RichTextBox control. I don't want to use RichTextBox Undo and Redo functions. Instead of that I want to develop my own algorithm for Undo & Redo,...
5
by: flash | last post by:
Hi, I am trying to access a text control using a variable name rather than a fixed id. ie I have a text controls called "tx1" "tx2" "tx3" etc. and i want to set the control using something...
3
by: ASP Developer | last post by:
I have a variety of pages that use a master page. For some reason when I attempt to copy any of the label text on the screen it seems to highlight most of the screen randomly and I can't simply...
4
by: Redgum | last post by:
I have a windows forms project that uses multiple tabs. On the first tab I have a rich text box that I'd like to be able to post text results from various operational threads - such as "Starting...
6
by: kareemaffan | last post by:
Hello Everyone I want to insert values into MS Access database through VB.NET in Visual Studio 2005 . I have used the following code which is not working. Private Sub Button2_Click(ByVal sender...
2
by: MacGuruTX | last post by:
I have a table with a varchar field where a subset of the records end with the letter "d". I need to move the d from the end of the column to the front of the column. The other characters are 3...
12
by: Keith G Hicks | last post by:
I have a client that I wrote an MS Access app for quite a few years ago where they need to know the height in inches of a block of text for billing their customers. The MS Access app opens Word in...
3
by: receipt24 | last post by:
Hi I am stuck! this will be easy I am sure for you... I am trying to insert additional text to a text box using the after update function in a form! For example: would like to insert HI...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.