User Profile

Collapse

Profile Sidebar

Collapse
hotrod57
hotrod57
Last Activity: Nov 30 '07, 09:27 PM
Joined: Oct 23 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • hotrod57
    started a topic Particle Swarm
    in C

    Particle Swarm

    I have this code that I am writing but it's stuck in a loop, and I can't get it to stop so that I can see why it is printing out the same value on every line. Please help.

    Code:
    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>
    #include <time.h>
    #include <iostream>
    
    using namespace std;
    
    double fit(int a);
    
    const int P = 200; // Particles
    ...
    See more | Go to post

  • hotrod57
    started a topic Posting information from form to text file
    in PHP

    Posting information from form to text file

    I am trying to append the results from a form to a text file. My code is supposed to print out the results on one page, and append the results to another page each time data is entered on the form and the submit button is hit. Unfortunately, it is only printing out the message acknowledging the submit button--no data on either form. Here is the code below, please help if you can.

    PHP code that reads the form submission:
    [PHP]<?php...
    See more | Go to post

  • hotrod57
    replied to Printing out info from a form
    in PHP
    This is very helpful, thanks a lot!
    See more | Go to post

    Leave a comment:


  • hotrod57
    replied to Printing out info from a form
    in PHP
    Sorry. The form works fine, except for the reset button. And now that you mention the POST, I guess it makes sense why it's not showing any output. The blank page is "phpform.ph p." But I guess it wouldn't show anything if I don't put the POSTs in it.
    See more | Go to post

    Leave a comment:


  • hotrod57
    started a topic Printing out info from a form
    in PHP

    Printing out info from a form

    I have this php function that reads a text file for input to create a form. I am trying to get the form to print out the data on a separate page, but all I get is a blank page. Am I calling the page correctly, or is this even possible to do?

    [PHP]<form action="phpform .php" method=POST>
    <?php
    $field=array();
    $type=array();
    $lines = file('test_read .txt');
    foreach ($lines as $line) {...
    See more | Go to post

  • hotrod57
    started a topic Read From an Array and Create Form
    in PHP

    Read From an Array and Create Form

    I have a text file that is changeable that I want to use to create a form with. Here is my text file, called 'test_read.txt" :

    Code:
    title = Test Form;
    checkbox = shoe;
    checkbox = hair;
    radio_button = 3;
    comment_box
    dropbox = 18-29;
    dropbox = 30-49;
    dropbox = 50-75;
    textbox = 50;
    Now my PHP code, right now, is just supposed to print the info out for test purposes....
    See more | Go to post

  • hotrod57
    started a topic Using php to create a form from a text file
    in PHP

    Using php to create a form from a text file

    I am using php to write a function that reads in lines from a text file and creates a form with the corresponding input values. I have a text file that looks like this:

    title = Test Page
    checkbox = shoe
    checkbox = comb

    I can separate these lines into an array, ($array[0] = title, checkbox, checkbox, and $array[1] = Test Page, shoe, comb) but I can't seem to figure out how to get the function to print out...
    See more | Go to post
    Last edited by pbmods; Nov 27 '07, 03:21 PM. Reason: Added CODE tags.
No activity results to display
Show More
Working...