You are here: Re: using this IF to forward to page? « PHP Programming Language « IT news, forums, messages
Re: using this IF to forward to page?

Posted by paul814 on 11/20/07 21:32

On Nov 20, 4:07 pm, paul...@excite.com wrote:
> > A call to header() must be made before ANY output to the browser. This
> > includes your <html> tag, any white space - anything.
>
> > As soon as you send even one byte - no matter what's in that byte - to
> > the browser, the web server sends the headers. It is now too late for
> > your header() call.
>
> > You can keep the <html> tag - but it must be *after* your PHP code which
> > calls header().
>
> > And thanks for not top posting :-)
>
> > --
> > ==================
> > Remove the "x" from my email address
> > Jerry Stuckle
> > JDS Computer Training Corp.
> > jstuck...@attglobal.net
> > ==================
>
> OK I understand....so I can have my php code first and it does not
> have to be wrapped in HTML tags, OK I thought it had to be wrapped in
> html tags.
>
> What if I wanted to make the IF multi-dimensional, is it done the
> same way? say I want to say something like...
> if($selected_radio == 0) AND if a specific option group item is
> selected, then goto this specific page...
> $selected_radio is for radio buttons, what is the syntax for option
> group box lists, like a list where you can drop down and pick your
> State from a list of 50.

OK well the page write-editorial.php opens now but it opens if radio
selected = 0 or 1. it should only do it if == 0. Am I missing
something?

<?PHP
if($selected_radio == 0){
header('Location: http://localhost/production/write-editorial.php');
exit;
}
?>

do I first have to tell it what radio button is called, ex:
radReadWrite ?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация