User Profile

Collapse

Profile Sidebar

Collapse
fishctr
fishctr
Last Activity: Jul 9 '08, 08:57 PM
Joined: Feb 27 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • fishctr
    started a topic Splice Method Question

    Splice Method Question

    Hello,
    I am trying to save information from a text box if the checkbox is selected. The checkboxes are dynamically created with php from mysql tables, so I don't know the index of the array that I would like to delete. My plan is use javascript to delete the null values from the textboxes so the length of that element will correspond with the length of the checkbox element, but I can't figure out how to use the splice method correctly......
    See more | Go to post

  • I decided to go with checkboxes instead and use the onclick event handler to display the drop down choices.

    Thanks,
    See more | Go to post

    Leave a comment:


  • Multiple select box to populate another select box

    Hi There,
    I am creating a survey that asks users what countries they have worked in, and which regions in those countries. Because there can be many answers, I was thinking I could populate a multiple select box, using php and mysql, containing the countries. When the user selects a country, another select box containing the regions in that country would appear (using Javascript onchange event handler).

    My problem is that...
    See more | Go to post

  • http://ewbi.blogs.com/develops/2004/...nging_a_t.html

    sorry :( forgot to put in the url!...
    See more | Go to post

    Leave a comment:


  • ok, i knew it would happen that I figure it out AFTER i post something. Anyway, if someone else has this problem, i found a solution here:


    I had to tweak it a bit (i erased the control.value+= control.value in the reallySetValue javascript function) because it was entering the input twice and therefore not searching the mysql database correctly.
    See more | Go to post

    Leave a comment:


  • using onchange to insert text variable into url?

    Hi there,
    I am trying to get a zip code lookup script to work. Basically, I want the user to input a zip code and the city and state are displayed without using a button to find it. I already have a zip code table in mysql. if i manually enter the ?zip= into the url, the city and state are displayed. my problem is getting the input into the url.


    any suggestions on where to look for solutions?
    here is my...
    See more | Go to post

  • fishctr
    replied to Multiple words in Variable link
    in PHP
    I don't know too much about this, but if i were you, i would try putting curly braces around your variable...

    .../search/{$recent_query} target...

    that technique has helped me out while inserting into databases, but i'm not sure that it works for url's.......
    See more | Go to post

    Leave a comment:


  • fishctr
    started a topic text array not posting as null when empty!
    in PHP

    text array not posting as null when empty!

    Hi There,
    I am building a form that allows a business to enter at most 2 mailing addresses. i have the form set up so both inputs are there, storing as a post array. the problem is, when i try to use php to enter the data into in the mysql database, it enters empty data even when a field is null.
    html
    Code:
    <form method='POST' action='entry2.php' name='entry'>
    <table>
    <tr><td colspan='4'
    ...
    See more | Go to post
No activity results to display
Show More
Working...