in reply to browser sending random info

I agree with Ovid that it sounds like an HTML problem, but you could always chomp the values.

That way if there is a carriage return at the end, it'll get deleted, and if not, nothing will be altered.

hth,
andy.

Replies are listed 'Best First'.
Re: Re: browser sending random info
by stretched2thin (Initiate) on Dec 17, 2001 at 21:31 UTC
    i chomped the values and it didn't help, then ovid, i checked the html, and turns out it was my own dumb fault- it was in the regex i used: @elements = split(/\|+/,$myvar); reading then writing back to a text file looking like this: 0|0|0|0 i should have used this: @elements = split(/\|/,$myvar); thanks though! is there a place in here when i could post potentially useful code bits for those seeking to accomplish the same thing i was doing? i was creating a simply survey.cgi to keep track of people's responses to a web poll.
      Hi stretched2thin - glad it worked out.

      is there a place in here when i could post potentially useful code bits for those seeking to accomplish the same thing i was doing?

      Snippets

      andy.

        thanks!