shanejeffery86 Posted June 15, 2010 Share Posted June 15, 2010 Hey all. I am trying to figure out how something is done and I am missing a logic step here. Let's just say that a user submits a form. Once that form is submitted, an ID is generated in the database and you call mysql_last_id() to get the last inserted ID. After you get the ID, you send the user to a new URL while attaching the ID to the URL WITH REWRITING! So, you go from index.php to nextpage.php?id=231, but the user sees in the URL -- domain.com/nextpage/231. How would something like this be done? I am trying to figure out the clean way to do this. Thanks! Link to comment https://forums.phpfreaks.com/topic/204825-generating-url-after-user-submission/ Share on other sites More sharing options...
Rustywolf Posted June 15, 2010 Share Posted June 15, 2010 Wrong board dude... Again... Link to comment https://forums.phpfreaks.com/topic/204825-generating-url-after-user-submission/#findComment-1072287 Share on other sites More sharing options...
syed Posted June 15, 2010 Share Posted June 15, 2010 If you are using apache, you can use the mod rewrite module to create the urls, other wise you will need to use a custom 404 Link to comment https://forums.phpfreaks.com/topic/204825-generating-url-after-user-submission/#findComment-1072292 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.