Latest PSU headlines:

Results 1 to 8 of 8
\n\r\n
\r\n

\n
\nHere is a picture of what it looks like:
\n
\n
\nAgain, I want the value of what is actually checked to display in a new page/form.
\n
\n
\nThanks and sorry if I am not clear!\r\n \r\n
\r\n\r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n
PS4|PS3|PS2|PS1|PSVITA|XBOX 360|XBOX|N64|3DS XL|DSi|Gameboy Advance|Gameboy Color|PC
\r\n \r\n \r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n -' + '->\r\n
\r\n \r\n \r\n \r\n \r\n \r\n Reply With Quote Reply With Quote \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n -' + '->\r\n
\r\n
\r\n
\r\n\r\n'; pd[5833410] = '\r\n
  • \r\n\r\n\r\n
    \r\n \r\n \r\n \r\n \r\n #2\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n [DT] \r\n \r\n
    \r\n [DT] is offline\r\n\r\n \r\n
    \r\n \r\n Forum Guru\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n [DT]\'s Avatar\r\n \r\n \r\n \r\n
    \r\n
    \r\n
    Join Date
    May 2008
    \r\n
    Location
    Vilano Beach, FL
    \r\n \r\n \r\n
    Posts
    3,867
    \r\n \r\n \r\n \r\n \r\n
    Rep Power
    \r\n
    68
    \r\n \r\n \r\n \r\n
    Points
    17,992 (0 Banked)
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n\r\n\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n You mentioned PHP, so I’m assuming you’re on a server running PHP and your dev environment is ready to go!
    \r\n
    \r\nBasically, web apps send data between pages by the URL/Querystring which you’ll see as some_page.php?key=value (which can be done using the form method GET, or manually constructing the query string, etc.), or by a POST (like your current FORM).
    \r\n
    \r\nThen the “receiving” page just needs to access those values. In PHP, this is done through the $_GET[] and $_POST[] variables.
    \r\n
    \r\nIf you POST your form, you’ll need to indicate the page that will handle the POST processing, so let’s say the page you posted is form_main.php (or .htm since it doesn’t actually contain any server script). You’ll just want to change the FORM section to something like this:
    \r\n
    \r\n

    \r\n
    \r\nThen you need to code up the form_handler page, here’s a few basics:
    \r\n
    \r\nThe PHP parser looks for opening closing tags to indicate there’s PHP script.
    \r\n
    \r\n\r\n
    \r\n// your code goes here
    \r\n
    \r\n?>
    \r\n
    \r\n(those double // are comment tags, everything behind them is ignored...)
    \r\n
    \r\n
    \r\nThen to access any FORM element, that was posted, you use the $_POST function like this, and referencing the NAME value used in the original form:
    \r\n
    \r\n\r\n
    \r\n// your code goes here
    \r\n
    \r\necho $_POST[‘TextBoxFirstName\'];
    \r\n
    \r\n?>
    \r\n
    \r\nSo that would’ve assumed a form field like
    \r\n
    \r\nThe echo function writes the value after it to the screen, so you can do literals like, echo \'this is fun\';
    \r\n
    \r\nThe value you see echo’ed to the screen is whatever was entered in the form field. So you access the VALUE by referencing the NAME.
    \r\n
    \r\nNote lines have a terminating character of ;
    \r\n
    \r\nTypically you’d set the posted values into variables for more concise use (especially if you’re using them multiple times),
    \r\n
    \r\n$firstname = $_POST[\'TextBoxFirstName’];
    \r\n
    \r\nThen you could echo $firstname, or use it in a DB proc, etc., etc.
    \r\n
    \r\nOK, additional fun and excitement:
    \r\n
    \r\nA form field/input can contain a VALUE attribute (like you’ve done). Same thing as above, except it isn’t user supplied, so in your HTML example:
    \r\n
    \r\n \r\n name = "group1"
    \r\n value = "One" />Apple

    \r\n
    \r\n
    \r\nAccessing that Checkbox via POST like this, $_POST[\'group1’] will return the value of \'One\'
    \r\n
    \r\n...however, there’s a couple of catches ... you were waiting for this part, right?
    \r\n
    \r\nThe Checkbox doesn’t “exist” in the POST unless it’s checked, so in other words, not checked, no $_POST[], checked there is a $_POST which corresponds to the set VALUE (in your case, “One”)
    \r\n
    \r\nNo problem, there’s a function called isset[] (Is Set) that can check for the existence of a value (returns boolean true/false), so a checkbox handler would be something like:
    \r\n
    \r\n
    \r\n\r\nif(isset($_POST[‘CheckBoxApple\']))
    \r\n{
    \r\n echo “Selected apple.";
    \r\n}
    \r\nelse
    \r\n{
    \r\n echo “Apple not selected.";
    \r\n}
    \r\n?>
    \r\n
    \r\nNote that I really didn’t deal with the VALUE as I just wanted to know if it was set, the checkbox itself provides the value logic so to speak.
    \r\n
    \r\nThe construct above is a typical bit of control logic:
    \r\n
    \r\nif(check for something)
    \r\n{
    \r\nlogic if it checks/exists
    \r\n
    \r\n}
    \r\nelse
    \r\n{
    \r\nlogic if it doesn\'t
    \r\n
    \r\n}
    \r\n
    \r\n
    \r\nNow, you’ve got an extra level of complexity because your checkboxes have the same NAME, that means, the code will not know which one to access, so they’ll be handled in an array, where you’ll need to recurse through, determine if it’s set, then get the value, and you’ll want to use the [] to denote the name will be handled as an array.
    \r\n
    \r\nIn fact, I’d say maybe rename your inputs to different names to get a handle on all the above and we can revisit, or I can toss up some code that will take the array group1 and recurse it, just didn’t want to overload you
    \r\n
    \r\n[edit]
    \r\n
    \r\nOK, I’ll toss up handling a checkbox array since I’m already there
    \r\n
    \r\nput the [] suffix on each element name, so group1[], and give each element a name that conveys the logic (the name of the fruit would be perfect):
    \r\n
    \r\n \r\n name = "group1[]"
    \r\n value = "Apple" />Apple

    \r\n
    \r\nThen in the form_handler page:
    \r\n
    \r\n\r\n
    \r\n $fruit = $_POST[\'group1\'];
    \r\n
    \r\n if(empty($fruit))
    \r\n {
    \r\n echo "Pick some fruit!";
    \r\n }
    \r\n else
    \r\n {
    \r\n $cnt = count($fruit);
    \r\n
    \r\n for($i=0; $i < $cnt; $i++)
    \r\n {
    \r\n echo $fruit[$i] ."

    ";
    \r\n }
    \r\n }
    \r\n
    \r\n
    \r\n
    \r\n?>
    \r\n
    \r\nWhat this does is create an array of all the items selected in the same group1[], arrays are lists of data, and each element can be selected by using an indexer, which is a integer value that indicates the position in the array starting from 0
    \r\n
    \r\nThe count() function returns the number of items (you’d have a max of 3), then the for loop gets each one by substituting a number starting from 0 to the number of items total in the array, so $fruit[0], $fruit[1]
    \r\n
    \r\nThe . notation is to concatenate strings, and you can see I’ve put a string value of

    to add a little HTML page break for readability.\r\n

    \r\n
    \r\n\r\n \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n -' + '->\r\n \r\n Last edited by [DT]; 05-25-2012 at 14:33.\r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n "Remember, you\'re young only once but you can be immature forever."\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n -' + '->\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n Reply With Quote Reply With Quote \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n -' + '->\r\n
    \r\n
    \r\n
    \r\n
  • \r\n'; pd[5833694] = '\r\n
  • \r\n\r\n\r\n
    \r\n \r\n \r\n \r\n \r\n #3\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n ex nihilo7 \r\n \r\n
    \r\n ex nihilo7 is offline\r\n\r\n \r\n
    \r\n \r\n Master Poster\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n ex nihilo7\'s Avatar\r\n \r\n \r\n \r\n
    \r\n
    \r\n
    Join Date
    Nov 2006
    \r\n \r\n \r\n
    Age
    25
    \r\n
    Posts
    3,359
    \r\n \r\n \r\n \r\n \r\n
    Rep Power
    \r\n
    65
    \r\n \r\n \r\n \r\n
    Points
    1,949 (3,000 Banked)
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n\r\n\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n Dude...Sweet! Thanks! I\'m going to try this right now!
    \n
    \n
    \r\n
    \r\n
    \r\n
    \r\n \r\n The Checkbox doesn’t “exist” in the POST unless it’s checked\r\n \r\n
    \r\n
    \r\n
    Yep, that was another thing I wasn\'t sure of.
    \n
    \nedit: I got the non-array examples to work! It took me about 10 minutes to realize I was trying to run the form outside of my localhost server. I was like "why is echo not working!"
    \n
    \nI\'m going to try the array next.
    \n
    \nedit2: I got the array working correctly! The only error is that when I don\'t select anything in the array, it gives me an error saying "undefined index". It must not know how to handle 0 selections.
    \n
    \nhere is a screenshot of it:
    \n
    \n
    \r\n\r\n
    \r\n
    \r\n
    \r\n\r\n \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n -' + '->\r\n \r\n Last edited by ex nihilo7; 05-25-2012 at 22:38.\r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n
    PS4|PS3|PS2|PS1|PSVITA|XBOX 360|XBOX|N64|3DS XL|DSi|Gameboy Advance|Gameboy Color|PC
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n -' + '->\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n Reply With Quote Reply With Quote \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n -' + '->\r\n
    \r\n
    \r\n
    \r\n
  • \r\n'; pd[5852068] = '\r\n
  • \r\n\r\n\r\n
    \r\n \r\n \r\n \r\n \r\n #4\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n ex nihilo7 \r\n \r\n
    \r\n ex nihilo7 is offline\r\n\r\n \r\n
    \r\n \r\n Master Poster\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n ex nihilo7\'s Avatar\r\n \r\n \r\n \r\n
    \r\n
    \r\n
    Join Date
    Nov 2006
    \r\n \r\n \r\n
    Age
    25
    \r\n
    Posts
    3,359
    \r\n \r\n \r\n \r\n \r\n
    Rep Power
    \r\n
    65
    \r\n \r\n \r\n \r\n
    Points
    1,949 (3,000 Banked)
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n\r\n\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n [DT] or anyone else, do you know how to strip the html from a php array on the fly for use when sending an html email?
    \n
    \n
    \r\n
    PHP Code:
    \r\n
    \n$N count($ends); 
        echo (
    \'<table border="1" class="lines" width="100%">\');
        echo (
    "<tr><th>Look For</th>");
        echo (
    "<th>Observed Comments</th></tr>");
        for(
    $i=0$i $N$i++)
        {
          echo(
    "<tr><td width=\'50%\'>");
          echo(
    $ends[$i] . "<p>");
          echo(
    "</td><td width=\'50%\'>");
          echo (
    " ");
          echo(
    "</td></tr>");
        }
        echo (
    \'<table>\');
        echo (
    "<p>");
      } \r
    \n
    \n
    \r\n
    I need to basically strip out the html somehow and email it at the same time.\r\n
    \r\n
    \r\n\r\n \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n
    PS4|PS3|PS2|PS1|PSVITA|XBOX 360|XBOX|N64|3DS XL|DSi|Gameboy Advance|Gameboy Color|PC
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n -' + '->\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n Reply With Quote Reply With Quote \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n -' + '->\r\n
    \r\n
    \r\n
    \r\n
  • \r\n'; pd[5852078] = '\r\n
  • \r\n\r\n\r\n
    \r\n \r\n \r\n \r\n \r\n #5\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n [DT] \r\n \r\n
    \r\n [DT] is offline\r\n\r\n \r\n
    \r\n \r\n Forum Guru\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n [DT]\'s Avatar\r\n \r\n \r\n \r\n
    \r\n
    \r\n
    Join Date
    May 2008
    \r\n
    Location
    Vilano Beach, FL
    \r\n \r\n \r\n
    Posts
    3,867
    \r\n \r\n \r\n \r\n \r\n
    Rep Power
    \r\n
    68
    \r\n \r\n \r\n \r\n
    Points
    17,992 (0 Banked)
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n\r\n\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n Yep, there’s a function built right into PHP:
    \n
    \nstrip_tags($string)
    \n
    \nreturns a string with the tags removed ($string is the input string).
    \n
    \nSo like:
    \n
    \n$str = \'

    this is some markup

    \';
    \n
    \necho strip_tags($str);
    \n
    \nResults in:
    \n
    \nthis is some markup
    \n
    \n
    \n\r\n
    \r\n
    \r\n\r\n \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n "Remember, you\'re young only once but you can be immature forever."\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n -' + '->\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n Reply With Quote Reply With Quote \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n -' + '->\r\n
    \r\n
    \r\n
    \r\n
  • \r\n'; pd[5852091] = '\r\n
  • \r\n\r\n\r\n
    \r\n \r\n \r\n \r\n \r\n #6\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n ex nihilo7 \r\n \r\n
    \r\n ex nihilo7 is offline\r\n\r\n \r\n
    \r\n \r\n Master Poster\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n ex nihilo7\'s Avatar\r\n \r\n \r\n \r\n
    \r\n
    \r\n
    Join Date
    Nov 2006
    \r\n \r\n \r\n
    Age
    25
    \r\n
    Posts
    3,359
    \r\n \r\n \r\n \r\n \r\n
    Rep Power
    \r\n
    65
    \r\n \r\n \r\n \r\n
    Points
    1,949 (3,000 Banked)
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n\r\n\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n Quote Originally Posted by [DT]\r\n View Post\r\n
    \r\n
    Yep, there’s a function built right into PHP:
    \n
    \nstrip_tags($string)
    \n
    \nreturns a string with the tags removed ($string is the input string).
    \n
    \nSo like:
    \n
    \n$str = \'

    this is some markup

    \';
    \n
    \necho strip_tags($str);
    \n
    \nResults in:
    \n
    \nthis is some markup
    \n
    \n
    \n
    \r\n \r\n
    \r\n
    \r\n
    Thanks for the reply! I can\'t seem to get it to work, but I tried it in a hurry (I have softball game in a short while).
    \n
    \nI tried this:
    \n$message = join($_POST[\'group1\']).join($_POST[\'group2\']).join($_POST[\'group3\']);
    \n
    \nand it prints out the correct strings from my arrays in this fashion:
    \n
    \n
    \r\n
    Code:
    \r\n
    string, string, string,etc.
    \r\n
    but I\'m not sure if I can apply the correct html formatting I want thats present in my array:
    \n
    \n
    \r\n
    Code:
    \r\n
    string\nstring\nstring\n\nstring \nstring\nstring
    \r\n
    edit: I\'m trying to send an html email generated by my survey form\r\n
    \r\n
    \r\n\r\n \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n
    PS4|PS3|PS2|PS1|PSVITA|XBOX 360|XBOX|N64|3DS XL|DSi|Gameboy Advance|Gameboy Color|PC
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n -' + '->\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n Reply With Quote Reply With Quote \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n -' + '->\r\n
    \r\n
    \r\n
    \r\n
  • \r\n'; pd[5852304] = '\r\n
  • \r\n\r\n\r\n
    \r\n \r\n \r\n \r\n \r\n #7\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n ex nihilo7 \r\n \r\n
    \r\n ex nihilo7 is offline\r\n\r\n \r\n
    \r\n \r\n Master Poster\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n ex nihilo7\'s Avatar\r\n \r\n \r\n \r\n
    \r\n
    \r\n
    Join Date
    Nov 2006
    \r\n \r\n \r\n
    Age
    25
    \r\n
    Posts
    3,359
    \r\n \r\n \r\n \r\n \r\n
    Rep Power
    \r\n
    65
    \r\n \r\n \r\n \r\n
    Points
    1,949 (3,000 Banked)
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n\r\n\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n Quote Originally Posted by ex nihilo7\r\n View Post\r\n
    \r\n
    Thanks for the reply! I can\'t seem to get it to work, but I tried it in a hurry (I have softball game in a short while).
    \n
    \nI tried this:
    \n$message = join($_POST[\'group1\']).join($_POST[\'group2\']).join($_POST[\'group3\']);
    \n
    \nand it prints out the correct strings from my arrays in this fashion:
    \n
    \n
    \r\n
    Code:
    \r\n
    string, string, string,etc.
    \r\n
    but I\'m not sure if I can apply the correct html formatting I want thats present in my array:
    \n
    \n
    \r\n
    Code:
    \r\n
    string\nstring\nstring\n\nstring \nstring\nstring
    \r\n
    edit: I\'m trying to send an html email generated by my survey form
    \r\n \r\n
    \r\n
    \r\n
    So I tried it again tonight and I got it working pretty well now I think. Thanks [DT]!\r\n
    \r\n
    \r\n\r\n \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n
    PS4|PS3|PS2|PS1|PSVITA|XBOX 360|XBOX|N64|3DS XL|DSi|Gameboy Advance|Gameboy Color|PC
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n -' + '->\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n Reply With Quote Reply With Quote \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n -' + '->\r\n
    \r\n
    \r\n
    \r\n
  • \r\n'; pd[5852451] = '\r\n
  • \r\n\r\n\r\n
    \r\n \r\n \r\n \r\n \r\n #8\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n [DT] \r\n \r\n
    \r\n [DT] is offline\r\n\r\n \r\n
    \r\n \r\n Forum Guru\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n [DT]\'s Avatar\r\n \r\n \r\n \r\n
    \r\n
    \r\n
    Join Date
    May 2008
    \r\n
    Location
    Vilano Beach, FL
    \r\n \r\n \r\n
    Posts
    3,867
    \r\n \r\n \r\n \r\n \r\n
    Rep Power
    \r\n
    68
    \r\n \r\n \r\n \r\n
    Points
    17,992 (0 Banked)
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n\r\n\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n OK, cool, I was going to mention that the underlying tag parser could/can occasionally get frazzled if the markup isn’t to spec.\r\n
    \r\n
    \r\n\r\n \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n "Remember, you\'re young only once but you can be immature forever."\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n -' + '->\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n Reply With Quote Reply With Quote \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n -' + '->\r\n
    \r\n
    \r\n
    \r\n
  • \r\n'; // next/previous post info pn[5833310] = "5852451,5833410"; pn[0] = ",5833310"; pn[5833410] = "5833310,5833694"; pn[5833694] = "5833410,5852068"; pn[5852068] = "5833694,5852078"; pn[5852078] = "5852068,5852091"; pn[5852091] = "5852078,5852304"; pn[5852304] = "5852091,5852451"; pn[5852451] = "5852304,5833310"; // cached usernames pu[0] = guestphrase; pu[21623] = "ex nihilo7"; pu[78337] = "[DT]"; // -->

    Threaded View

    1. #1
      Master Poster
      ex nihilo7's Avatar
      Join Date
      Nov 2006
      Age
      25
      Posts
      3,359
      Rep Power
      65
      Points
      1,949 (3,000 Banked)

      I need help with javascript/php!

      Hi guys, I'm trying to figure out how to parse results from one form into another form. I never learned php or javascript while in school, so I'm trying to learn it now.

      Specifically, what I am trying to do right now is display a list of checkboxes via html5 for the user to select, and then based on what the user selects, have that fill into another form via a string. I don't know if I should do this using php or if I could do it just using javascript. I'm not really trying to upload to a database as far as I know, but that is something that I should learn as well.

      So for checkbox:

      Apple = checked
      Orange
      Mango = checked


      New Form
      Fruit Selected:
      Apple
      Mango


      My html code:


      Here is a picture of what it looks like:


      Again, I want the value of what is actually checked to display in a new page/form.


      Thanks and sorry if I am not clear!
      PS4|PS3|PS2|PS1|PSVITA|XBOX 360|XBOX|N64|3DS XL|DSi|Gameboy Advance|Gameboy Color|PC

    Thread Information

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts

    PSU

    Playstation Universe

    Reproduction in whole or in part in any form or medium without express written permission of Abstract Holdings International Ltd. prohibited.
    Use of this site is governed by our Terms of Use and Privacy Policy.

    PSU.com

    Recommended Gaming Sites:

    vBCredits II Deluxe v2.1.0 (Pro) - vBulletin Mods & Addons Copyright © 2010-2014 DragonByte Technologies Ltd.