# Form submission question

**URL:** <https://forum.kirupa.com/t/form-submission-question/269440>\
**Category:** programming\
**Created:** [August 27, 2008, 4:45pm UTC](https://forum.kirupa.com/t/form-submission-question/269440 "2008-08-27T16:45:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharkb8](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@sharkb8](https://forum.kirupa.com/u/sharkb8)\
**Post date:** [August 27, 2008, 4:45pm UTC](https://forum.kirupa.com/t/form-submission-question/269440/1 "2008-08-27T16:45:53Z")

</div>

I’m passing variables to a php script and js but the thing is I’m using the post method. I dont want it to return the php script in the browser. Here’s the snippet:

```php
<form method="POST" action="./scripts/poll_vote.php">
Yes: 
<input type="radio" name="vote" 
value="0" >
<br />No: 
<input type="radio" name="vote" 
value="1" >
 <?php 
     $entry_id = "{entry_id}";
     echo "<input type='hidden' name='entry' value='$entry_id'>";
     echo "<input type='hidden' name='test' value='$message'>";
  
    echo "<input type='submit' Value='Submit' onclick='getVote(vote.value)'>" ;
 ?>
  
</form>

```

Is there a way to pass the variable and not go to the page? I hate to pass the entry\_id via js.
