Missing the big picture

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Missing the big picture

Post 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.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

For some reason works on my actual server..
not the one I'm just running on my comp :S
Any Ideas?
Post Reply