{"action":"opened","issue":{"url":"https://api.github.com/repos/susanBuck/dwa15-fall2018/issues/58","repository_url":"https://api.github.com/repos/susanBuck/dwa15-fall2018","labels_url":"https://api.github.com/repos/susanBuck/dwa15-fall2018/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/susanBuck/dwa15-fall2018/issues/58/comments","events_url":"https://api.github.com/repos/susanBuck/dwa15-fall2018/issues/58/events","html_url":"https://github.com/susanBuck/dwa15-fall2018/issues/58","id":366153267,"node_id":"MDU6SXNzdWUzNjYxNTMyNjc=","number":58,"title":"Redirecting back to index.php for validation","user":{"login":"malrice","id":42950461,"node_id":"MDQ6VXNlcjQyOTUwNDYx","avatar_url":"https://avatars1.githubusercontent.com/u/42950461?v=4","gravatar_id":"","url":"https://api.github.com/users/malrice","html_url":"https://github.com/malrice","followers_url":"https://api.github.com/users/malrice/followers","following_url":"https://api.github.com/users/malrice/following{/other_user}","gists_url":"https://api.github.com/users/malrice/gists{/gist_id}","starred_url":"https://api.github.com/users/malrice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malrice/subscriptions","organizations_url":"https://api.github.com/users/malrice/orgs","repos_url":"https://api.github.com/users/malrice/repos","events_url":"https://api.github.com/users/malrice/events{/privacy}","received_events_url":"https://api.github.com/users/malrice/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-03T02:42:16Z","updated_at":"2018-10-03T02:42:16Z","closed_at":null,"author_association":"NONE","body":"Hello, \r\nThe last bit of my Project 2 work involves a form that forwards to a confirmation page upon submission. For the validation process, I would need to redirect back to the main page in order for the visitor to fix any errors. I'm at a bit of a standstill on how to do this. I've tried doing an if/else statement such as this: \r\n\r\nif($hasErrors){\r\nheader('index.php');}\r\nelse{header('search.php');}\r\n\r\n(please note that coding is approximate, as I don't have the file open). \r\nThis didn't work, giving me an error. \r\nI'm wondering if this is the best course of action, or if there's a better course of action I should pursue. "}}
{"actor":{"display_login":"malrice"}}