Tutorialstream.com Forum Index
 FAQ   Search   Members   Usergroups   Register   Profile   Log in to check your private messages   Log in 

Log in
Username:    Password:      Log me on automatically each visit    
Passing a variable after it's inserted in database...

 
Post new topic   Reply to topic    Tutorialstream.com Forum Index -> Web Design
View previous topic :: View next topic  
Author Message
tom fallow



Joined: 30 Dec 2005
Posts: 27
Location: PA

PostPosted: Mon Jan 16, 2006 3:40 am    Post subject: Passing a variable after it's inserted in database... Reply with quote

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
View user's profile Send private message
Fed
Site Admin


Joined: 12 Aug 2005
Posts: 176

PostPosted: Mon Jan 16, 2006 10:23 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
tom fallow



Joined: 30 Dec 2005
Posts: 27
Location: PA

PostPosted: Mon Jan 16, 2006 5:50 pm    Post subject: Reply with quote

That's a great idea! I'll try using a URL variable then. Thanks Fed!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Tutorialstream.com Forum Index -> Web Design All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

phpBB SEO URLs V2 - Icons by Mark James

Powered by phpBB © 2001, 2005 phpBB Group