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...
User Profile
Collapse
-
Thanks a lot it worked ! -
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 messagesLeave a comment:
-
...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"Leave a comment:
-
I have another password field just after this one, for confirmation.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...Leave a comment:
-
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...
No activity results to display
Show More
Leave a comment: