Results 1 to 7 of 7

Thread: Php Help
      
   

  1. #1
    Join Date
    May 2006
    Location
    Estonia
    Posts
    47

    Lightbulb Php Help

    Okay...

    i have this HTML form:

    Code:
    <html>
    <body>
    <center>
    <FORM name="Join *BB* Form" method="POST" action="send.php">
    <INPUT type="text" style="position:absolute;left:107px;top:6px;width:168px;z-index:39" size="21" 
    
    name="NAME" value="">
    <INPUT type="text" style="position:absolute;left:107px;top:35px;width:168px;z-index:40" size="21" 
    
    name="ET" value="">
    <DIV style="position:absolute;left:19px;top:6px;width:45px;height:16px;z-index:41" align="left">
    <FONT style="font-size:13px" color="#000000" face="Arial">Name:</FONT>
    </DIV>
    <DIV style="position:absolute;left:19px;top:37px;width:77px;height:16px;z-index:42" align="left">
    <FONT style="font-size:13px" color="#000000" face="Arial">Name in ET:</FONT>
    </DIV>
    <INPUT type="text" style="position:absolute;left:109px;top:67px;width:168px;z-index:43" size="21" 
    
    name="AGE" value="">
    <DIV style="position:absolute;left:20px;top:68px;width:33px;height:16px;z-index:44" align="left">
    <FONT style="font-size:13px" color="#000000" face="Arial">Age:</FONT>
    </DIV>
    <DIV style="position:absolute;left:19px;top:129px;width:59px;height:16px;z-index:45" 
    
    align="left">
    <FONT style="font-size:13px" color="#000000" face="Arial">OId clan:</FONT>
    </DIV>
    <INPUT type="text" style="position:absolute;left:109px;top:128px;width:168px;z-index:46" 
    
    size="21" name="OLDCLAN" value="">
    <TEXTAREA name="WHYLEFT" 
    
    style="position:absolute;left:107px;top:158px;width:174px;height:69px;z-index:47" rows=4 
    
    cols=19></TEXTAREA>
    <DIV style="position:absolute;left:18px;top:184px;width:83px;height:16px;z-index:48" 
    
    align="left">
    <FONT style="font-size:13px" color="#000000" face="Arial">Why you left:</FONT>
    </DIV>
    <TEXTAREA name="WHYJOIN" 
    
    style="position:absolute;left:108px;top:241px;width:174px;height:69px;z-index:49" rows=4 
    
    cols=19></TEXTAREA>
    <DIV style="position:absolute;left:20px;top:262px;width:96px;height:32px;z-index:50" 
    
    align="left">
    <FONT style="font-size:13px" color="#000000" face="Arial">Why you want to join *BB*:</FONT>
    </DIV>
    <INPUT type="submit" name="" value="Send" 
    
    style="position:absolute;left:206px;top:330px;width:75px;height:24px;z-index:51">
    
    </FORM>
    
    
    
    </center>
    </body>
    </html>
    and if i press send it goes to here:

    Code:
    <?
    $mailbody = "$name $ETName $Age $OldClan $Whyleft $WhyWantJoin $mailsubj
        $name $POST[NAME]
        $ETName $POST[ET]
        $Age $POST[AGE]
        $OldClan $POST[OLDCLAN]
        $Whyleft $POST[WHYLEFT] 
        $WhyWantJoin $POST[WHYJOIN]
        $mailsubj New Player Who Wants Join *BB*";
    echo $mailbody;
    ?>
    Everything should work but i don't know why...it don't show nothing only blank page...

    It have to show names and thingys... but it's wierd

  2. #2
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,317

    Default Re: Php Help

    What is it that you are trying to do? Mail this info to your e-mail? Simply
    display in a browser?

    Andy
    PHP- is a blast!

  3. #3
    Join Date
    May 2006
    Location
    Estonia
    Posts
    47

    Default Re: Php Help

    it will just display those things what this guy have written there... (to this form)

  4. #4
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,317

    Default Re: Php Help

    The form needs to do something. Do you want it sent to you in an e-mail? Simply displayed on the monitor? Or put into a data base.

    How do you want it to show? In what format.

    Andy
    PHP- is a blast!

  5. #5
    Join Date
    May 2006
    Location
    Estonia
    Posts
    47

    Default Re: Php Help

    hm... it have to display only this text... like a confirm page...it have to display only this text... nothing else

  6. #6
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,080

    Default Re: Php Help

    You need to set the encoding type to multipart / form data"
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  7. #7
    Join Date
    May 2006
    Location
    Estonia
    Posts
    47

    Default Re: Php Help

    well i tryed it like this:

    Code:
    <?php
    $name = $_POST['NAME'];
    $ETName = $_POST['ET'];
    $Age = $_POST['AGE'];
    $OldClan = $_POST['OLDCLAN'];
    $Whyleft = $_POST['WHYLEFT'];
    $WhyWantJoin = $_POST['WHYJOIN'];
    $mailsubj = "New Player Who Wants Join *BB*";
    
    $mailbody = array($name, $ETName, $Age, $OldClan, $Whyleft, $WhyWantJoin, $mailsubj);
    
    foreach($mailbody as $mailbody){
    echo $mailbody.'<br />';
    }
    ?>
    and it worked...

Thread Information

Users Browsing this Thread

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

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •