Jump to content

inkubus08

Members
  • Posts

    7
  • Joined

  • Last visited

inkubus08's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Thats the point.....POST method works for text fields....radio buttons....hidden buttons...etc...but not for regular buttons...i need to know how to process the regular buttons as if they were text fields/hidden buttons/radio buttons (if that makes sense)
  2. sorry for the confusion...the file names are correct because it does load the php file just nothing is displayed....if i another echo to temp.php it displays...for example:<form method="POST" action="whatever the file name is"><input type="button" value="TEMP" name="daaaa"><input type="button" value="TEST" name="LOLOLOL"><input type="submit" value="OMG"></form><?php$da = $_POST['daaaa'];$lol = $_POST['LOLOLOL'];echo 'This is a test.';echo $da.$lol;?>when submit is press this is displayed:This is a test.
  3. this doesn't work eitherTest.php<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Untitled Document</title></head><body><form method="POST" action="temp.php"><input type="button" value="TEMP" name="daaaa"><input type="button" value="TEST" name="LOLOLOL"><input type="submit" value="OMG"></form></body></html>Temp.PHP<?php //temp.php$da = $_POST['daaaa'];$lol = $HTTP_POST_VARS['LOLOLOL'];echo $da;echo ($lol);?>
  4. yes...for example if the file named test.php the form would be:<form method="POST" action="test.php"><input type="button" value="TEMP" name="daaaa"><input type="button" value="TEST" name="LOLOLOL"><input type="submit" value="OMG"></form><?php$da = $_POST['daaaa'];$lol = $_POST['LOLOLOL'];echo $da.$lol;?>if this will not work would anyone see a another way that i could get the values from the buttons so that i can add the values to a mysql database.....normally i would process the form like above and then store the values as php variables and then use php to add them to my database...
  5. inkubus08

    Form Processing

    Maybe i'm doing something wrong but with this example when the submit button is pressed name/value of the two buttons are not being passed with the post....the echo produces nothing...is there a way to make this scenerio work???any additional help would be wonderful...<form method="POST" action="whatever the file name is"><input type="button" value="TEMP" name="daaaa"><input type="button" value="TEST" name="LOLOLOL"><input type="submit" value="OMG"></form><?php$da = $_POST['daaaa'];$lol = $_POST['LOLOLOL'];echo $da.$lol;?>I need to have the value of each button available after the form has been submitted.
  6. inkubus08

    HTML Form POST

    Thank you for the help but I need to know how to make this work.....Maybe i'm doing something wrong but with this example when the submit button is pressed name/value of the two buttons are not being passed to php....the echo produces nothing....any additional help would be wonderful...<form method="POST" action="whatever the file name is"><input type="button" value="TEMP" name="daaaa"><input type="button" value="TEST" name="LOLOLOL"><input type="submit" value="OMG"></form><?php$da = $_POST['daaaa'];$lol = $_POST['LOLOLOL'];echo $da.$lol;?>I need to have the value of each button available after the form has been submitted.
  7. inkubus08

    HTML Form POST

    I need to find out if there is a way to pass input button values when a form is submitted. I need to submit the form, evaluate the button values, and then using PHP insert them into a MySQL database. I know that the values of hidden buttons are passed using the post or get method but I need the values of all input buttons on the form. Any help would be great. Thanks.
×
×
  • Create New...