PDA

View Full Version : Post not working?



wizard
03-15-2009, 09:57 AM
Kind of a newbie but using Dreamweaver CS4 with Hostmonster site as my remote aned testing server is Apache, Mysql (WAMP). Anyway my pages all work fine locally on test server but when I try them from Hostmonster the pages that use "get" work great but as soon as I try a post the called page does not "see" the variables.

It gets to the right page but the variables from the previous page here is a partial of the PHP script from the paage

<?php
// Make sure both a description and
// file have been entered
echo $photoname;
echo "Stuff in between";
echo $userfile;
echo "After echo";

if(empty($photoname) || $userfile == "none")
die("You must enter both a description and file");


I "posted" both $photoname and $userfile from the page that does the calling. This works fine on the local testing server -- the echo shows me that neither is avail to this page. Do I need to set globals or something?

THanks

Any hints would be appreciated!