Activity Stream
48,167 MEMBERS
6828 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1.     
    #1
    Member
    Website's:
    maxneeds.info

    Red face HTML questions.

    Hi there !
    My site has a stylesheet which is centering everything and looks okay.
    There are exceptions in centering which i manually fix and don't touch the css,but this time i have bigger problem.
    I have an input text fields.One is for subject,2nd for To,3rd is the Message.
    The Message field is the problem.It is 200px in height and the blink pointer is in the center (vertically),so i need it at the top.I tried stuff like vertical-align:top,padding:0 but it is still there.There's the screenshot.Any suggestions ?



    Also it would be great if you give me a hand on how automatically to go on next line when the current line is full (or maybe some char limit).

    Tha current code:
    Code: 
    Message: <input style="height:200px;vertical-align:top;" size=70 width=100% maxlength=5000 minlenght=5 type="text" name="message" />
    Porsche_maniak Reviewed by Porsche_maniak on . HTML questions. Hi there ! My site has a stylesheet which is centering everything and looks okay. There are exceptions in centering which i manually fix and don't touch the css,but this time i have bigger problem. I have an input text fields.One is for subject,2nd for To,3rd is the Message. The Message field is the problem.It is 200px in height and the blink pointer is in the center (vertically),so i need it at the top.I tried stuff like vertical-align:top,padding:0 but it is still there.There's the Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    Rapidleech.com FullMaza.com WarezOcean.com MediaFireForum.com
    Here you go:

    This does exactly what you want. Jump to the next field when one has filled max allowed characters.

    http://www.javascriptkit.com/script/.../autotab.shtml

  4.     
    #3
    Respected Member
    Website's:
    nooky.us
    Just create a rule and use that for the two form items.

  5.     
    #4
    Member
    Website's:
    maxneeds.info
    sniffdog i tried with css class but it is not helping.. And i forgot to mention other problem.When "enter" is pressed it submits the form instead of going to a new line

  6.     
    #5
    Banned
    ^Usually Tab is pressed to goto Next Field not Enter
    Hahaha dont use Input man Input has only 1 line.
    Use TextArea instead
    Code: 
    <textarea name="" cols="" rows=""></textarea>

  7.     
    #6
    Member
    Yes do as Spy said.You have to use textarea instead of textfiled.

  8.     
    #7
    Member
    Website's:
    maxneeds.info
    Thx spy it worked !
    I hope you have a php knowledge too because i face problem again.

    Lets say i have :

    Code: 
    1|2|3|4|5|6|7|8|9
    a|b|c|d|e|f|g|h|i
    How do i take the first value for each line. (1,a)
    I bet that the explode is in the game.
    I also have the following script but it is not working (working only for first line).

    PHP Code: 
          $pfile fopen("config/file.php","r");
          
    rewind($pfile);
          
    $linecount 0;
          while (!
    feof($pfile)) {
            
    $line fgets($pfile);
            if (
    $line != '') {
              
    $tmp explode('|'$line);
              if ((
    $linecount 2) == 0) {
    echo 
    $tmp[0];
              
    $linecount $linecount 1;
            }
          }}
          
    fclose($pfile); 

  9.     
    #8
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    PHP Code: 
        $lines file("config/file.php"); 
    That gets each line into an array, faster and less code!
    Join Litewarez.net today and become apart of the community.
    Unique | Clean | Advanced (All with you in mind)
    Downloads | Webmasters


    Notifications,Forum,Chat,Community all at Litewarez Webmasters


  10.     
    #9
    Member
    Website's:
    epicimagehost.com
    Quote Originally Posted by * Porsche_maniak * View Post
    Lets say i have :

    Code: 
    1|2|3|4|5|6|7|8|9
    a|b|c|d|e|f|g|h|i
    How do i take the first value for each line. (1,a)
    Not sure about this:

    PHP Code: 
    $lines file_get_contents("config/file.php");
    $lines trim($lines);
    $lines str_replace("\n",'|',$lines); // Saw there is a newline.. Replace it with a '|'.
    $lines explode('|',$lines);

    $numbers = array();
    $letters = array();

    foreach(
    $lines as $char){
       if(!
    is_numeric($char))
         
    $letters[] = $char;
       else
         
    $numbers[] = $char;
     }
    unset(
    $char,$lines);

    if(!
    $numbers[0])
      die(
    'Couldnt find any numbers');
    if(!
    $letters[0])
      die(
    'Couldnt find any letters');

    $no_numbers count($numbers);
    $no_letters count($letters);

    if(
    $no_numbers != $no_letters)
       die(
    'BOOGIEDIBOOE');

    for(
    $i=0;$i<$no_numbers;$i++){
      echo 
    '('.$numbers[$i].','.$letters[$i].')'); // Should echo "(1,a)"

    Edit:

    If you do it like litewarez

    PHP Code: 
    $lines file("config/file.php");

    $letters explode('|',$lines[0]);
    $numbers explode('|',$lines[1]);
    unset(
    $lines);

    $no_letters count($letters);
    for(
    $i=0;$i<$no_letters;$i++){
      echo 
    '('.$numbers[$i].','.$letters[$i].')');


  11.     
    #10
    Member
    Website's:
    maxneeds.info
    @Robin H thanks but it seems that you have take my example in other way.
    Actually they are usernames
    Code: 
    Fat_Joe|not needed content|not needed content|not needed content
    JessyJames|not needed content|not needed content|not needed content
    So i just wanted to take only the names..


    I've used

    PHP Code: 
    $lines file_get_contents("config/file.php");
    $lines trim($lines);
    $lines str_replace("\n",'^',$lines);
    $lines=explode("^",$lines);
    foreach(
    $lines as $aa){$aa=explode("|",$aa);$aa='<option>'.$aa[0].'</option>';} 
    but i can't implode after foreach $aa neither $aa[0];
    So if i echo $aa i get only one username instead of all..

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Few questions about VPN's.
    By jSx@ECD in forum Technical Help Desk Support
    Replies: 15
    Last Post: 18th Jan 2012, 04:38 PM
  2. Questions about vps!
    By xps15z in forum Hosting Discussion
    Replies: 6
    Last Post: 4th Sep 2011, 09:58 AM
  3. Replies: 8
    Last Post: 21st Jul 2010, 06:13 PM
  4. Few questions . . .
    By nYXem in forum Webmaster Discussion
    Replies: 8
    Last Post: 24th Jun 2010, 03:07 PM

Tags for this Thread

BE SOCIAL