PHP question

Discussion in 'Software' started by Daniela, Jan 26, 2006.

  1. Daniela

    Daniela Private First Class

    Hi everybody. I hope someone will help me .
    I’m creating my first php dynamic page/pages and I run into a problem. I have declared in MySQL variable Description = longtext, and I have created forms for input and editing as bellow.

    Adding Form

    <textarea wrap=PHYSICAL name="Description" rows=20 cols="100%">Enter your Description...use <br> for line break
    </textarea>
    ……

    for edit/display

    <textarea wrap=PHYSICAL name="Description" type="text" rows=20 cols="100%" value="<?php echo($Description) ?>" /><?php echo($Description) ?>
    </textarea>

    form action =”save.php”
    save.php

    ….
    $Description = $_REQUEST["Description"];
    ……

    if( condition )
    {
    $query = "UPDATE `tablename` SET …..
    `Description`='$Description' …….

    }
    else
    {
    $query = "INSERT INTO `tablename` ( … `Description`, `… )
    VALUES ( … '$Description', …)";
    }
    …….
    Problem is that when I enter large text( larger than 700 characters) ‘save’ form doesn’t work or I’m getting error message that data couldn’t been saved.

    If I’m entering through MySQL there is no problem with text length.
    Any idea?
    Thanks
     
  2. Daniela

    Daniela Private First Class

    Fixed. I just used method='post' insted 'get'. So simple :)
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds