hi,
i'm a newbie programmer and i just built a website with a poll. the page is completely in html and linked to the php script processing the poll result in the action attribute of the form tag. my problem is the results of the poll comes up in a new page but i need the results of the poll to appear just under the poll itself on the same page. can anybody help me with that?
cali_dotcom
0
Junior Poster in Training
Recommended Answers
Jump to Postei.. if you want you're result on the same page use:
<form method="post" action="<?php echo $_SERVER['PHP_SELF'];"></form>
then you're php code for the result on the top of you're html..
hope this help :)enim
Jump to Postlike:
<?php //index.php <form action="otherPage.php" method="post"><form> ?> <?php //otherPage.php if($result) { // use meta tag here or header("Location: index.php"); } ?>
is that what you mean.. processing from other page
enim
All 7 Replies
enim213
1
Light Poster
cali_dotcom
0
Junior Poster in Training
enim213
1
Light Poster
cali_dotcom
0
Junior Poster in Training
kashif farooq
0
Newbie Poster
joe1987
0
Newbie Poster
jibon57
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.