dan_t Posted April 30, 2010 Share Posted April 30, 2010 I know this is probably a "no" answer, but -- is there a way to take data from a form and append it to a page ( like entering it yourself to a web page) without having to store the data on a database? Link to comment https://forums.phpfreaks.com/topic/200314-displaying-data/ Share on other sites More sharing options...
947740 Posted April 30, 2010 Share Posted April 30, 2010 If I understand what you are saying...let's say you have an html page with one text box with the name 'address.' The form action is process.php. The code: $address = $_POST['address']; // Redirect to another page, appending value to url header("location: file.php?address={$address}"); exit(): Then in file.php you could do w/e you wanted with that // In file.php $address = $_GET['address']; // Do something However, I don't see why you would pass on values to another script when you could just process them in one script... Link to comment https://forums.phpfreaks.com/topic/200314-displaying-data/#findComment-1051224 Share on other sites More sharing options...
dan_t Posted April 30, 2010 Author Share Posted April 30, 2010 I'm horrible at explaining things, but I'll try. You have a person come onto your site. You want them to fill out a form so they can have their own page with the information they filled out, like in comments. Each person uses the same form, the form I thing has to go to the same file I guess? action="whatever". You can't get that information to their own page without information going into a database can you? There would be no way to store it, correct? Link to comment https://forums.phpfreaks.com/topic/200314-displaying-data/#findComment-1051228 Share on other sites More sharing options...
947740 Posted April 30, 2010 Share Posted April 30, 2010 You could store it in a text file...but that is much more difficult (imho) to process. Link to comment https://forums.phpfreaks.com/topic/200314-displaying-data/#findComment-1051229 Share on other sites More sharing options...
dan_t Posted April 30, 2010 Author Share Posted April 30, 2010 I had heard the word "sticky" used and wasn't sure what it meant. Link to comment https://forums.phpfreaks.com/topic/200314-displaying-data/#findComment-1051231 Share on other sites More sharing options...
947740 Posted April 30, 2010 Share Posted April 30, 2010 I don't know what you're talking about... Has your question been answered? Link to comment https://forums.phpfreaks.com/topic/200314-displaying-data/#findComment-1051236 Share on other sites More sharing options...
dan_t Posted April 30, 2010 Author Share Posted April 30, 2010 Yes that's fine, I looked it up, googled making forms sticky Link to comment https://forums.phpfreaks.com/topic/200314-displaying-data/#findComment-1051239 Share on other sites More sharing options...
947740 Posted April 30, 2010 Share Posted April 30, 2010 Okay. I just didn't recall you saying anything about that in your OP and I was confused. If the topic is solved -> please click the topic solved button. Link to comment https://forums.phpfreaks.com/topic/200314-displaying-data/#findComment-1051240 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.