Jump to content

Generating URL after user submission


shanejeffery86

Recommended Posts

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

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.