Welcome Guest, Not a member yet? Register   Sign In
Redirect after database insertion
#1

[eluser]Unknown[/eluser]
I have a form where the user inputs the necessary fields to be inserted to a table in the database. My aim is to redirect the user to another page after insertion.

Unfortunately, it is not working. I am inserting by calling a function of the model of that table, and after the tuple has been inserted, the page becomes white. Any ideas? Should i post my code?
#2

[eluser]Unknown[/eluser]
False alarm. I finally made it to work, but i have to remove a statement after the insertion that uses the data array to be inserted. Maybe I should store it to an another variable first. Sorry for the post.




Theme © iAndrew 2016 - Forum software by © MyBB