Jump to content

displaying data


dan_t

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.