Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > VodaHost Web Hosting Support > mySQL & PHP

Notices

mySQL & PHP Discussions, information and help with mySQL and PHP.

Reply
 
LinkBack Thread Tools
  #1  
Old 07-08-2006, 06:40 AM
JaanEST's Avatar
Staff Sergeant
 
Join Date: May 2006
Location: Estonia
Posts: 48
Send a message via MSN to JaanEST Send a message via Skype™ to JaanEST
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 07-08-2006, 06:44 AM
Andy128's Avatar
Major General
 
Join Date: Dec 2005
Location: Michigan
Posts: 2,282
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
__________________
My diamond in the rough - www.123gpp.com

* Click here for some BV tutorials (Php mailto Form, I-Frames, Picture display and much, much more!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 07-08-2006, 06:47 AM
JaanEST's Avatar
Staff Sergeant
 
Join Date: May 2006
Location: Estonia
Posts: 48
Send a message via MSN to JaanEST Send a message via Skype™ to JaanEST
Default Re: Php Help

it will just display those things what this guy have written there... (to this form)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 07-08-2006, 07:01 AM
Andy128's Avatar
Major General
 
Join Date: Dec 2005
Location: Michigan
Posts: 2,282
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
__________________
My diamond in the rough - www.123gpp.com

* Click here for some BV tutorials (Php mailto Form, I-Frames, Picture display and much, much more!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 07-08-2006, 06:33 PM
JaanEST's Avatar
Staff Sergeant
 
Join Date: May 2006
Location: Estonia
Posts: 48
Send a message via MSN to JaanEST Send a message via Skype™ to JaanEST
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old 07-08-2006, 10:17 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,346
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!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old 07-09-2006, 06:43 PM
JaanEST's Avatar
Staff Sergeant
 
Join Date: May 2006
Location: Estonia
Posts: 48
Send a message via MSN to JaanEST Send a message via Skype™ to JaanEST
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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 03:44 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2005-2009 VodaHost Web Hosting Your Perfect Web Host - All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176