- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: CGI, how to exit ?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2003 12:03 AM
тАО10-24-2003 12:03 AM
CGI, how to exit ?
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.
When I leave the exit, the scipt continues and prints the start html-page again.
if ((grep !/\./, $mailadres) || (grep !/@/, $mailadres)) {
print "";
exit;
How do I exit without the premature end of script message?
Regs David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2003 12:11 AM
тАО10-24-2003 12:11 AM
Re: CGI, how to exit ?
email='someone@your.net';
That avoides the problem of the special character @ which requires a / before it to not casue the premature header error.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2003 12:43 AM
тАО10-24-2003 12:43 AM
Re: CGI, how to exit ?
I think you are missing a curly bracket, before the exit command.
Otherwise, there is no problem with the code or the exit instance.
>>
if ((grep !/\./, $mailadres) || (grep !/@/, $mailadres)) {
print ""; }
exit;
<<
Should work!
- ramd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2003 12:45 AM
тАО10-24-2003 12:45 AM
Re: CGI, how to exit ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2003 12:47 AM
тАО10-24-2003 12:47 AM
Re: CGI, how to exit ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2003 12:49 AM
тАО10-24-2003 12:49 AM
Re: CGI, how to exit ?
Thanks elmar for pointing that out.
- ramd.