Sending Variables in Post

I want to send only one variable via the post method. I have queried the database and have to post $row[id] variable to the page along with the form. To send the user's input we simply do dfs. and the value is send. But, how can i send the variable $row[id] to the file. And also, how would I access it?

-------------Problems Reply------------

Not sure if I understand your question correct, but you could try to use hidden input to store your variable:

<input type="hidden" name="whatever_name" value="whatever_value" />

You can access it on PHP side the same as any other $_POST field.

Category:php Views:0 Time:2010-06-01
Tags: php html post

Related post

  • How to send variables from one user control to another without using session? 2009-06-25

    How to send variables from one user control to another on the same web page during a postback without using session variables? Hidden fields could be an option, anything else? --------------Solutions------------- In general, controls on a pag

  • How can I send variables to my forms on init in Django? 2010-05-12

    I want to send variables to a form in my Django project so that my form's save method associates the correct object with the foreign key in the model. I tried setting it in the init method, but that doesn't seem to work. Here is my Form's init: def _

  • Sending variable data from one of two text boxes to javascript 2010-06-05

    Greetings, all! I am fairly new to JS (my background is in C++, enterprise languages like assembly and COBOL, and some light .NET), so I was wondering if I could get some advice regarding how to send variable information from one of two text boxes to

  • Sending variables from C# to VBScript 2010-06-27

    is it possible to send variables from C# to a VBScript file? Then send variables back to C# after the script is executed. Thank you --------------Solutions------------- You can pass command line parameters to a VBScript file, using the windows script

  • Cannot send variables with ajax to php 2010-12-15

    If been trying for some time now and cannot get this to work without help. I want to send variables from a contact form to a php in order to get it mailed to me. the js looks something like this: $("#submitQuote").live('click',function(){ var shirt_s

  • sending variables to the added subview view controller 2011-01-11

    I know how to retrieve variables from your parent view... which is by doing something like this [(mainViewController *)[self.superview] variableName]; but now i would like to know how to send variable data to a subview... specially if i do something

  • Sending Variables to my PHP File - They are null for some reason 2011-04-09

    I am sending variables to my PHP file to add things to the database, but for some reason my database either gets filled with blanks or it just does not add to the database at all. customer.php <script type="text/javascript"> function addCustome

  • How to send variables using exec() PHP 2011-04-26

    I am trying to send php variables to a function, but none of the following are passing the variables. $vars='email=' . $_POST['email'] . '&password=' . $_POST['password'] . '&server=' . $_POST['server']; $function = 'nohup php unsubscribefunc

  • Sending variable length arrays over a network? 2011-10-12

    In the game I'm making, I nee to be able to send std::vectors of integer over a network. A packet seems to be made up entirely of a string. Since enet, the network libray im using takes care of endian, my first idea on solving this is to send a messs

  • sending variables to procedures in c and pascal 2011-11-07

    for sending variables to procedures what we should do in c and(or) pascal? as i searched this work has to be done by BP( base pointer) or rather i should say that BP do it,and one more thing is that C and Pascal are opposite of each other. ----------

  • send variable to controller with link_to method rails 3 2012-02-10

    I have a problem with link_to to send variable. With form_for and submit button works fine, but I need send the data with link_to. This works fine with form_for: <%= form_for (@post), :method => :post, :remote => true, :html => { :id =

  • How to send variables/objects in TCP Socket? 2012-02-22

    How can I send variables/objects/data from one program to another in a LAN using TCP Socket? In particular, I want to send variables like TreeNode and ListViewItem. How can I do this? How will a sender program convert the variable to a form which it

  • send variable from ctivity to another one 2012-03-31

    I would like to send variable from ctivity to another activity, but these activities are not related directely. Infact, there is 3 or 4 activities running between them. The variable that I would like to send is the ID of the user. I tried with creati

  • exec file in php by sending variable 2014-01-30

    I have a file and i want to call in php. I used exec(perl perl_tests\ and I want to send variables in to this pl file can you give me advice? --------------Solutions------------- exec('perl perl_tests\ arg1 arg2 arg3 ....')

  • sending variable value to Bootstrap modal 2014-04-29

    I'm just learning about bootstrap..I need help from anyone who know how to send variable value to a modal.. to make it even clearer, I have a table with action column. the action column consist of edit and delete button. if the edit button clicked, t

  • Send variables to javascript(jquery) function 2009-10-18

    I wont to be able to send a variable to a JavaScript function when I click on a link but for some reason I cant find anywhere on how to do it on the internet. Here is the function at the top of my page: <script> $(document).ready(function(){ $(

  • Creating loop for sending variable to other components in Flex 2009-12-10

    I have some simple function in Flex in which I would like to send one of my variables to all the components used in my app... The problem is that there is lots of components in my app, and I'm not sure how to reference to my component's id... Basical

  • Jquery - Send variables to a controller Action via GET in AJAX 2010-01-13

    All, I want to send a variable "itemId" via GET to a controller action through AJAX. In the Controller Action, I should be able to retrieve the value using $_GET["itemId"]; Can I send the querystring with "data" tag instead of appending it to the "ur

  • Sending variables behind the scenes from PHP to whatever absolute or relative page? 2010-03-13

    How do I post them to whatever page from here and how can I send these variables to several pages at the same time? //catched those variables within the same page $event = $_POST['event']; $when = $_POST['eventdate']; $where = $_POST['place']; $name

Copyright (C), All Rights Reserved.

processed in 0.131 (s). 11 q(s)