Page 1 of 1

forms

Posted: Thu Apr 22, 2004 3:32 am
by mike08
trying to display the form i fill out on a different page
but doesn't show up can you help

this code is on my vote page

Code: Select all

<form method="POST" action="<?$PHP_SELF?>" target="http://localhost/shopbots/poll_index.php">
     <font face="Verdana" size="2">
and this is on my poll_index.php page

Code: Select all

<font face="Verdana" size="2">
     <form method="POST" action="<?=$PHP_SELF ?>?submit=yes">
     <b>Question:</b><br>
     <input type="text" name="fun"><br><br>
     <b>Alternative:</b> <input type="kelkoo" name="alt"><br>
     <b>Alternative:</b> <input type="text" name="alt2"><br>
     <b>Alternative:</b> <input type="text" name="alt3"><br>
     <b>Alternative:</b> <input type="text" name="alt4"><br>
     <b>Alternative:</b> <input type="text" name="alt5"><br>
     <b>Alternative:</b> <input type="text" name="alt6"><br>
     <b>Alternative:</b> <input type="text" name="alt7"><br>
     <b>Alternative:</b> <input type="text" name="alt8"><br><br>
     <input type="submit" name="submit" value="Submit">
     </FORM></font>
can't seem to get the results to show - is the above code correct to link the two?

Posted: Thu Apr 22, 2004 3:43 am
by feyd
<?$PHP_SELF?>
doesn't print anything.. change to <?=$PHP_SELF?>

Posted: Thu Apr 22, 2004 4:09 am
by mike08
Thanks a lot works now cheers