Ducky1 Posted March 5, 2009 Share Posted March 5, 2009 I've just started learning PHP. Ive probably made a -really- simple mistake here (i suspect formatting in the echo). Im trying to post information from a form to the script, and just get it to simply echo the results. Ive checked form input id's and names... thanks for your help in advance: <?php $parameter1 = $_POST["parameter1"]; $parameter2 = $_POST["parameter2"]; echo $parameter1 " - " $parameter2; echo "END"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/148058-php-formecho-simple-please-help/ Share on other sites More sharing options...
RussellReal Posted March 5, 2009 Share Posted March 5, 2009 <?php $parameter1 = $_POST["parameter1"]; $parameter2 = $_POST["parameter2"]; echo $parameter1 " - " $parameter2; echo "END"; ?> you forgot the contactinator ( . ) here try this: <?php $parameter1 = $_POST["parameter1"]; $parameter2 = $_POST["parameter2"]; echo $parameter1 ." - ". $parameter2; echo "END"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/148058-php-formecho-simple-please-help/#findComment-777131 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.