neomotive Posted February 14, 2010 Share Posted February 14, 2010 my scripts work in my pc local webserver but not work in real webhost ----------------------- example: ------- <? echo '<form method="post" action="';echo $_SERVER['PHP_SELF'];echo '"> <table border="0" width="300" cellspacing="0" cellpadding="0"> <tr> <td height="30"><p align="center">Your E-mail:</p></td> <td height="30"><p align="center"><input type="Text" name="email"></p></td> </tr> </table> <input type="hidden" name="ref" value="';echo $r;echo '"> <input type="Submit" name="submit" value="I agree"> </form>'; if ($submit == true) { /* --- My executable script --- */ } else { } ?> ------------------------------- what can i do? Quote Link to comment https://forums.phpfreaks.com/topic/192014-php-script-not-work/ Share on other sites More sharing options...
harristweed Posted February 14, 2010 Share Posted February 14, 2010 try converting '<?' to '<?php' Quote Link to comment https://forums.phpfreaks.com/topic/192014-php-script-not-work/#findComment-1012025 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.