| View previous topic :: View next topic |
| Author |
Message |
tom fallow
Joined: 30 Dec 2005 Posts: 27 Location: PA
|
Posted: Mon Jan 16, 2006 3:40 am Post subject: Passing a variable after it's inserted in database... |
|
|
Hello all. So far I've created a series of pages where a user makes a profile of a property he wants to rent out. He names the property "$propertyname". Once the information is inserted into the database, he is taken to a preview page.
I am working within Dreamweaver as well as php. My question is this: what is the best way to carry $propertyname to the next page where I can use it to create a recordset and display the information? I've tried using a hidden field, but it seems as though after information is inserted into the database, it doesn't get carried to the next page. Any help would be greatly appreciated! |
|
| Back to top |
|
 |
Fed Site Admin

Joined: 12 Aug 2005 Posts: 176
|
Posted: Mon Jan 16, 2006 10:23 am Post subject: |
|
|
I think it should work with a hidden field, btw you could try passing the values as parameters with the get method in the form so that your url will look like
http://www.site.com/script.php?propertyname=Flat+in+Copenhagen
you should be able to find tons of tutorials with google
I don't think there might be many differences between this and the hidden field carried with the post method |
|
| Back to top |
|
 |
tom fallow
Joined: 30 Dec 2005 Posts: 27 Location: PA
|
Posted: Mon Jan 16, 2006 5:50 pm Post subject: |
|
|
| That's a great idea! I'll try using a URL variable then. Thanks Fed! |
|
| Back to top |
|
 |
|