Jump to content

good_boy

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

good_boy's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Guys,I found some help here: http://www.smartwebby.com/PHP/Phptips2.asp.What do you think?Will it be helpful.
  2. Thanks Pikachu2000. I'm experiencing a problem with the code posted by cssfreakie.If $value has two solutions it returns both the values along with the "you are interested in" statement.I just want it to echo something like this : "You are interested in first_value, second_value & third_value."
  3. Thanks a lot mikesta707.The 'die' and 'is_numeric' functions are a new addition to my brain's database .What is regex? I don't think that the ucwords function alone would do the job.What if the user types in his/her name in all caps? I realize that my knowledge about functions is very limited.How can I improve my functions vocabulary ?
  4. It worked!!!Thanks a million.I have a few more doubts which I'm posting below. 1.I wanted PHP to process & output the names from my form in the 'first letter of the word in uppercase & the rest in lowercase' method. I did this because if the user inputs the same name in some other way(like all caps),php will consider it as another name.And secondarily the output will look weird like 'JOhn' if the user makes a mistake. I used the following method to overcome this issue $name = strtolower($name); $name = ucwords($name); Is this the correct method or is there any direct method to make PHP identify it as a name? 2.Is there any method to restrict the input type of an html form to numbers using html/php? 3.At the moment,if a user submits my form without completing all the fields in it,he is greeted with an error by php.I wish to prevent my form.html page from submitting the form until al the fields are filled. Thank you once again.
  5. Hi guys! I'm new to PHP and I need help from you to create a simple form with checkboxes. Experts here will be able to solve it easily. I'm posting a part of the code below. form.html Interests<br /> Sports<input type="checkbox" name="interests[]" value="Sports" /> <br /> Reading<input type="checkbox" name="interests[]" value="Reading" /> <br /> Surfing<input type="checkbox" name="interests[]" value="Surfing" /> <br /> output.php <?php $inter = $_POST['interests']; ?> I read somewhere that it is now submitted as an array to to the output.php file but I don't know how to play with it.I want php to out put the values of $inter in the following manner. "You are interested in {$inter}." Please help me. Is this a very complicated code to write?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.