<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CGI, how to exit ? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cgi-how-to-exit/m-p/3101544#M717428</link>
    <description>If the curly bracket is your problem, I would place it behind the exit instead of before ;-)</description>
    <pubDate>Fri, 24 Oct 2003 07:47:44 GMT</pubDate>
    <dc:creator>Elmar P. Kolkman</dc:creator>
    <dc:date>2003-10-24T07:47:44Z</dc:date>
    <item>
      <title>CGI, how to exit ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cgi-how-to-exit/m-p/3101540#M717424</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I would like to check my incomming values to be a real e-mail adres. Unfortunetly when they do not pass I'dd like to exit. This comes with an error. Premature end of Header. &lt;BR /&gt;When I leave the exit, the scipt continues and prints the start html-page again.&lt;BR /&gt;&lt;BR /&gt;if ((grep !/\./, $mailadres) || (grep !/@/, $mailadres)) {&lt;BR /&gt;     print "&lt;FORM&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Error: E-mail adres has to contain an @ and a . &lt;BR /&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/FORM&gt;";&lt;BR /&gt;exit;&lt;BR /&gt;&lt;BR /&gt;How do I exit without the premature end of script message?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regs David&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Oct 2003 07:03:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cgi-how-to-exit/m-p/3101540#M717424</guid>
      <dc:creator>David_246</dc:creator>
      <dc:date>2003-10-24T07:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: CGI, how to exit ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cgi-how-to-exit/m-p/3101541#M717425</link>
      <description>In a cgi script you can do email addresses in single quotes.&lt;BR /&gt;&lt;BR /&gt;email='someone@your.net';&lt;BR /&gt;&lt;BR /&gt;That avoides the problem of the special character @ which requires a / before it to not casue the premature header error.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 24 Oct 2003 07:11:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cgi-how-to-exit/m-p/3101541#M717425</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-10-24T07:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: CGI, how to exit ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cgi-how-to-exit/m-p/3101542#M717426</link>
      <description>David,&lt;BR /&gt;&lt;BR /&gt;I think you are missing a curly bracket, before the exit command.&lt;BR /&gt;&lt;BR /&gt;Otherwise, there is no problem with the code or the exit instance.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;if ((grep !/\./, $mailadres) || (grep !/@/, $mailadres)) {&lt;BR /&gt;print "&lt;FORM&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Error: E-mail adres has to contain an @ and a . &lt;BR /&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/FORM&gt;"; }&lt;BR /&gt;exit;&lt;BR /&gt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;Should work!&lt;BR /&gt;&lt;BR /&gt;- ramd.</description>
      <pubDate>Fri, 24 Oct 2003 07:43:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cgi-how-to-exit/m-p/3101542#M717426</guid>
      <dc:creator>Ramkumar Devanathan</dc:creator>
      <dc:date>2003-10-24T07:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: CGI, how to exit ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cgi-how-to-exit/m-p/3101543#M717427</link>
      <description>You could try to add two newlines to the start of your print... The problem is you need some newlines between your HTML header and the HTML code. If those are missing, you get an error message like the one you got.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Oct 2003 07:45:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cgi-how-to-exit/m-p/3101543#M717427</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2003-10-24T07:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: CGI, how to exit ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cgi-how-to-exit/m-p/3101544#M717428</link>
      <description>If the curly bracket is your problem, I would place it behind the exit instead of before ;-)</description>
      <pubDate>Fri, 24 Oct 2003 07:47:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cgi-how-to-exit/m-p/3101544#M717428</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2003-10-24T07:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: CGI, how to exit ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cgi-how-to-exit/m-p/3101545#M717429</link>
      <description>Oops!&lt;BR /&gt;&lt;BR /&gt;Thanks elmar for pointing that out.&lt;BR /&gt;&lt;BR /&gt;- ramd.</description>
      <pubDate>Fri, 24 Oct 2003 07:49:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cgi-how-to-exit/m-p/3101545#M717429</guid>
      <dc:creator>Ramkumar Devanathan</dc:creator>
      <dc:date>2003-10-24T07:49:18Z</dc:date>
    </item>
  </channel>
</rss>

