Author |
Message |
Contempt+ Server Help Squatter
Age:36 Gender: Joined: May 15 2005 Posts: 682 Location: Home Offline
|
Posted: Sat Aug 27, 2005 1:42 pm Post maybe stupid Post subject: PHP Form |
 |
|
|
|
I know that I've asked a couple of you already, but this is strange.
I made a form online using HTML with a responding .php page. That php page sends the data that was inserted in the form to my e-mail address.
Now, the strange part is, all of it works, except for 1 function/command.. (Can't think of the proper name right this minute). And it's right in the middle of the rest of the other commands/functions.
When I click Submit, it sends all the data, except for that one thing, lol.
Here's the code. Oh, and it's a lyric submission form. I got tired of all the crap that's on the lyric websites now, so I'm making one.
Form:
<tr>
<td width="16%" height="22">
<b><font face="Verdana" size="1">Album:</font></b></td>
<td width="84%" height="22">
<font face="Verdana" size="1"><b>
<input type="text" name"cdtitle" size="34" value=""></b></font></td>
</tr> |
Responding page:
<?php
$title = $_POST['title'];
$artist = $_POST['artist'];
$cdtitle = $_POST['cdtitle'];
$body = $_POST['body'];
$note = $_POST['note'];
$email = $_POST['email'];
mail( "my e-mail", "Lyrics",
"Title: $title; Artist: $artist; Album: $cdtitle; Lyrics: $body; Comments: $note", "From: $email" );
?> |
Now, I'm still learning php, but I don't understand why this isn't working. It's the "Album" section, and on the php page, its called "cdtitle". I've tried a few things, and nothings worked. Any help would be appreciated. Thanks. _________________ SSE Network Administrator |
|
Back to top |
|
 |
Maverick

Age:41 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Sat Aug 27, 2005 2:49 pm Post maybe stupid Post subject: Re: PHP Form |
 |
|
|
|
forgot the = _________________
|
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Sat Aug 27, 2005 3:20 pm Post maybe stupid Post subject: |
 |
|
|
|
Nice catch. I looked through the whole thing and never saw that. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
Donkano Server Help Squatter
Gender: Joined: Jul 02 2003 Posts: 763 Offline
|
Posted: Sat Aug 27, 2005 3:24 pm Post maybe stupid Post subject: |
 |
|
|
|
Dr Brain, simple way of detecting errors:
1st Page 2000 |
|
Back to top |
|
 |
Contempt+ Server Help Squatter
Age:36 Gender: Joined: May 15 2005 Posts: 682 Location: Home Offline
|
Posted: Sat Aug 27, 2005 5:47 pm Post maybe stupid Post subject: |
 |
|
|
|
Ok, but what I don't understand, is that I don't have the = sign for any of the other names, and it works. |
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:38 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Sat Aug 27, 2005 6:01 pm Post maybe stupid Post subject: |
 |
|
|
|
What the... you've been trying to do this for a month already.
Try packet logging on the client's side and/or echo'ing the results on the server's side, maybe that makes it a little easier to find out. |
|
Back to top |
|
 |
Donkano Server Help Squatter
Gender: Joined: Jul 02 2003 Posts: 763 Offline
|
|
Back to top |
|
 |
Donkano Server Help Squatter
Gender: Joined: Jul 02 2003 Posts: 763 Offline
|
Posted: Sat Aug 27, 2005 6:26 pm Post maybe stupid Post subject: |
 |
|
|
|
Also, size 1 is pretty small, I would reccomend size 2. |
|
Back to top |
|
 |
Contempt+ Server Help Squatter
Age:36 Gender: Joined: May 15 2005 Posts: 682 Location: Home Offline
|
Posted: Sat Aug 27, 2005 11:42 pm Post maybe stupid Post subject: |
 |
|
|
|
Oh, I see. I thought you guys were talking about the PHP end of it. I see what I did wrong.
Thanks guys. |
|
Back to top |
|
 |
|