forms

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
mike08
Forum Commoner
Posts: 57
Joined: Mon Apr 19, 2004 3:18 am

forms

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

<?$PHP_SELF?>
doesn't print anything.. change to <?=$PHP_SELF?>
mike08
Forum Commoner
Posts: 57
Joined: Mon Apr 19, 2004 3:18 am

Post by mike08 »

Thanks a lot works now cheers
Post Reply