so I'm adding some stuff to the database, once done I try and redirect to the same page using:
but the code keeps on running. It loops and adds the same entry into the database over and over and over again. When I press stop I get a message "Document contains no data", when I go and check the database, the entry has been added many times. Code works fine if I hard code the page name. What am I doing wrong?