title: Execute javascript function after php redirect
body: <p>I have a page where a user creates an item to auction it. If he submits the item creation form, the browser automatically redirects him to the newly created page via the following line of php code:</p>
  
  <pre><code>header('Location: item.php?itemid='.$itemid);
  </code></pre>
  
  <p>I would like to display a notification right after the item creation (on the newly created page) saying that the item has been created. This is the (working) code I use to call the notifications:</p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
          $(function(){
              $container = $("#container").notify();
              notifyItemCreation();
          });
      &lt;/script&gt;
  </code></pre>
  
  <p><em>EDIT:</em> I think people are misunderstanding the problem.
  So my <strong>sellitem.php</strong> page contains a form to sell an item, if this is submitted it gets send to <strong>createitem.php</strong>, this is where I do the validation checks. 
  If everything is okay this is where I redirect to the newly created <strong>item.php?item='$itemid'</strong> page. I want on this (<strong>item.php?item='$itemid'</strong>) page the notification to be displayed. </p>
  
  <p><em>EDIT2:</em> I do know how to create the item.php?itemid='$itemid' page, this gets done perfectly, it is the notification to appear that is the problem. I am using the notifications from <a href="http://www.erichynds.com/blog/a-jquery-ui-growl-ubuntu-notification-widget" rel="nofollow">http://www.erichynds.com/blog/a-jquery-ui-growl-ubuntu-notification-widget</a>
  Can the people who are downvoting also explain why they are.</p>