Jump to content

cherylinn

Members
  • Posts

    22
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

cherylinn's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi, i have a question on unique id. I am creating a page for user to register their account with a unique id given. When user has successfully created, the page will direct them to another page that display their unique id. How do i make sure the unique id in the successful page is the same as the unique id given in the page they are registering? For example, $name = uniqid(); echo "$name";
  2. how to write the code for date validation where leap year etc is taken into account, there shall not be any non-numeric number in the year and year must not be <1900, and the month and day must not be empty . My code is $day=$_POST['day'] $month=$_POST['month'] $year=$_POST['year']
  3. nope =) my assignment only require me to put dropbox for day and month and for year, a input box. I only left with validating the date.
  4. Thanks, how about month where i need to create january , february etc?
  5. Thanks! it works but it doesn't show 31 in the days. Last question, how about month? where i need to display january february etc opps i post wrong
  6. Thanks! it works but it doesn't show 31 in the days. Last question, how about month? where i need to display january february etc
  7. for the dropdown list, we have to list everything out in the array in order to remain selected? Because my dropdown list consist of the date. For example, Day<select name=day value=''> <option value="">--Please Select--</option> <option value='01'>01</option> <option value='02'>02</option> <option value='03'>03</option> etc.. all the way to 31
  8. How do i get a radio button and dropdown list to remain selected? For example i select gender as female and apple in dropdown list and press submit button. When i press the back button to return, i want the radio button for female to stay selected and apple in dropdown list to remain selected.
  9. How to create a few checkbox according to the number of array? For example my array consist of [apple,orange,pear,grape,banana] I have a few URL in a php. Each of the url have to display different result. For example the first url page display apple,orange and the second url page display pear,apple,banana. For each fruits, there must be a checked checkbox beside it. How do i create an overall code for the checked checkbox since the number of the checked checkbox differ in each url page.
  10. for my case, i would want to validate it after pressing submit button.
  11. Hi, i want to make a drop down date where (dropdown list for day and month and textbox for year) , how do i validate it and ensure it have sticky form? for example , if a person select April 31, a sticky form will appear and state that " Date is invalid"
  12. Hi, i need help in php code. How to create "checked" checkboxes according to the explode array. for example, in the first array, i have "1,2,3,4,5" in the second array, i have "a,b,c,d" after exploding the array , how do i create the checkbox? For example 5 checkboxes for 5 items, 4 checkboxes for 4 items?
  13. hahas okay, cause one of my assignment require to use php specifically and i really have no clue on how to start it
×
×
  • 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.