User Profile

Collapse

Profile Sidebar

Collapse
logicbloke
logicbloke
Last Activity: Mar 29 '10, 06:36 PM
Joined: Jan 12 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • logicbloke
    started a topic Editable input
    in C

    Editable input

    Hello,

    In a modifying function, the user might not change the whole structure's data, so I wanted for example if he hits enter, it just keeps the old data, but scanf("%d",inte ger); doesn't accept a return character and keeps asking.

    Entrer the uid : //user hits enter initial value should be kept
    Enter the username :

    so I wanted to fill in advance the user input, just like the following...
    See more | Go to post

  • logicbloke
    replied to Browsers auto-filling bad fields
    Thanks a lot it worked !
    See more | Go to post

    Leave a comment:


  • logicbloke
    replied to Browsers auto-filling bad fields
    The login form will never be in this page, as it is an area for logged-in users only, I will by default fill the field with "http://" if db is empty .. thanks acoder for your messages
    See more | Go to post

    Leave a comment:


  • logicbloke
    replied to Browsers auto-filling bad fields
    Code:
    	<tr>
    			<td class="odd">Website</td>
    			<td class="odd">
    			<input type="text" <?php if(!empty($user['url'])) echo "value=\"{$user['url']}\"";?> name="url" />
    			</td>
    		</tr>
    		<tr>
    		<td class="odd">New password</td>
    		<td>
    		<input type="password"
    ...
    See more | Go to post

    Leave a comment:


  • logicbloke
    replied to Browsers auto-filling bad fields
    I have another password field just after this one, for confirmation.
    See more | Go to post

    Leave a comment:


  • The time ? if that's what you're looking for, include time.h then declare two
    variables, with clock_t as type, just like the following

    [CODE=C]clock_t start,end;

    start = clock(); //mark the beginnning
    function();
    end = clock(); // mark the end
    printf("Time elapsed : %ld ms.",(end-start)*1000/CLOCKS_PER_SEC) ;
    [/CODE]
    CLOCKS_PER_SEC is a constant that will...
    See more | Go to post

    Leave a comment:


  • logicbloke
    started a topic Browsers auto-filling bad fields

    Browsers auto-filling bad fields

    Hello,

    All the browsers I tested are filling two fields that aren't for logging in, both have different names from the ones on the login form, and eventhough, the browsers fill them, I have read that removing the value tag instead of just writing empty would resolve the problem, but the value tag is already absent from my fields.

    PS : Just to mention that my fields have text and password as types.

    How...
    See more | Go to post
No activity results to display
Show More
Working...