Say I have two CGI files: start.cgi and view.cgi. view.cgi recieves data from start.cgi via POST method. My question is, what are the necessary conditions to use in a conditional statement if I were to determine the presence of data in stdin
? This is to redirect the user back to start.cgi if the said user accesses view.cgi directly.
I already took care of the redirection part.