Page 1 of 1

Missing the big picture

Posted: Mon Mar 15, 2004 9:32 am
by John Cartwright
I have a simple form to add data into a database..

Code: Select all

<?php
	if ($submitPortfolio == "SUBMIT") {  

	$status="1";
    
     ?>
	
  	<script language=javascript> 

    window.open("admin_confirm.php? <? echo "type=$type&date=$date&live=$live&picture=$picture&description=$description&notablefeatures=$notablefeatures" ?>", "Portfolio Admin", "toolbar=0,status=0,menubar=0,scrollbars=no,resizable=no,width=315,height=400"); 
																												
	</script>
	
	<? } ?>
?>
This is on the same page as my form.
The URL given that the check is supposed to check is

http://localhost/admin/portfolio.php?ty ... lio=SUBMIT

I'm on very little sleep, so please what is wrong. It looks as if the whole if statement is being skipped.

Posted: Mon Mar 15, 2004 9:51 am
by John Cartwright
For some reason works on my actual server..
not the one I'm just running on my comp :S
Any Ideas?