View Full Version : Bravenet email form.


Rosey
05-21-2004, 10:46 PM
I've been looking for a contact form and the php ones I found really were bad so I went with the bravenet one and it seems to be working but I'd like to know if there is a way to skip the page that asks for confirmation. Is there a way to get it to go straight to the thank you page?

Also, maybe i screwed up but i put a textarea and when i send an email it gives me :

Submit_x = 38
Submit_y = 15

which i'd like to get rid of. I hope it makes sense.

chrishawthorne
05-22-2004, 01:21 AM
Hello Rosey!

If your host supports PHP, I can give you the code someone gave me to use for my email form on http://www.unsigned-online.com/submitmusic.html

It goes directly to a thank you page, designed by you, so there are no ads or anything.

Click submit, don't worry, ill delete the email :P .. See, the thank you page is completely adfree :)

All ya need is PHP.

Rosey
05-22-2004, 10:52 AM
oh it worked flawlessly, yes i'm interested, send me send me! I've been trying all night to figure out my problem and I know it has something to do with the images I'm trying to use instead of the default buttons. But if i can avoid using bravenet I will. I looked for some scripts and tried a few but they were a pain, no directions to set up and I couldn't figure it out. :/

chrishawthorne
05-22-2004, 10:56 AM
Ok, Here is the post originally made by PB&J (Thank God, I love PB&J for this lol)

http://www.lissaexplains.com/forum/showpost.php?p=420438&postcount=11


FYI: The thanks.php page, just change it to whatever file you want it to go to, for instance thanks.html or something like that. I hate PHP :P

Rosey
05-22-2004, 11:06 AM
oh my gosh i feel like a noob. Search the forum ! Sheesh! hehehe

I love php :) i discovered last fall and it's just SO much easier to edit pages. You have NO idea how much work it is to change ONE typo on 100 pages. Well you might know, hehe. I'm lazy to php is a good thing for me, just like css. :)

Thank you so much!

chrishawthorne
05-22-2004, 11:15 AM
I cant create PHP, but I can edit it. I have done a lot of work to my PHPBB forum.

Haha, speaking of 100 pages with a typo, I just discovered SSI's a year ago :P

No need to thank me, You have helped me so much it's the least I can do.

Now this is the time I mumble on annoyingly until my post gets deleted for being "offtopic"

<offtopic>about noobness: Well see, I really didn't do much in the way of HTML until last year.. Last year I was still looking up the code for putting in an image.


I have done most of my learning in 2004

Now I am working on 4 sites for myself, a hosting company, 2 personal sites, and my radio station Im dumping one of the personal ones and the hosting one.

See, I am really a almost 600 post noob on this forum. If I have had 600 posts, that essentially means I have had 300 questions. 300 posts is asking the question, and 300 is saying thank you for helping me fix that haha

But I am not a complete idiot, I am part of the tech support team for the radio broadcast software I use for my station, and have almost 2000 posts on their forum ;)

Wow. That was offtopic. But there is no way I am deleting all that perfectly good typing.</offtopic>

Rosey
05-22-2004, 11:23 AM
Yeah i know how to edit php, i can make includes ...oooo....lol phpbb I can do too.

I can't believe I didn't see that post, that was just 2 days ago. I'm working on 3 sites now, got another that should be coming in.

But thanks again, I can't wait to try it..later today..much later today..hehe

Rosey
05-24-2004, 04:48 PM
Ok i get this:
Warning: Cannot modify header information - headers already sent by (output started at /home/heavensp/public_html/test.php:14) in /home/heavensp/public_html/test.php on line 42

which is where this line is:

header("Location: thankyou.php");

so now what?

chrishawthorne
05-24-2004, 05:12 PM
Are the two files in the same folder?

If so, post your entire file and your thank you page, ill try it on my server to see if it is your server or something in the coding.

pb&j
05-25-2004, 02:39 AM
make sure that that you have no spaces before <?php and after ?>. Any spaces will make the parser go into HTML mode and output those spaces to the browser.

Rosey
05-25-2004, 04:03 AM
you know what, i think i'm missing something, i'm having major brain farts today. What else to i need to put on the page?

Do i need to make the form myself?

pb&j
05-25-2004, 04:10 AM
yup.
create a webpage with a form.
set the ACTION of the FORM to point to the php script page.

Rosey
05-25-2004, 04:13 AM
see that's where i was an idiot...it just now dawned on me..well at least I didn't spend all night on it..pfft! *cough* lol

let's see if i can something finished today..lol

Rosey
05-25-2004, 04:27 AM
YAY!!! It works!

I get all the data but I also get this:

submit_x
27

submit_y
24

the numbers change, i'm not sure why that's there...

my form code is:

<form action="contact1.php" method="post" style="margin:0px;">



<table style="width:100px; height: 296px;">

<tr><td>

<center>
<table width="40">

<tr><td width="10"><b>Name:</b> </td><td width="30"><INPUT type="text" name="name" size="25" style="border: 1pt solid #071424;"></td></tr>
<tr><td width="10"><B>URL:</b> </td><td width="30"><INPUT type="text" name="url" size="25" style="border: 1pt solid #071424;"></td></tr>
<tr><td width="10"><b>E-mail:</b> <td width="30"><INPUT type="text" name="replyemail" size="25" style="border: 1pt solid #071424;"></td></tr>
<tr><td width="10"> <b>Subject:</b> <td width="30"> <INPUT type="text" name="subject" size="25" style="border: 1pt solid #071424;"></td></tr>
<BR>
</td>

</tr>

<tr><td colspan="2"><br>
<b>Message:</b><br>
<center>
<textarea name="message" cols="40" rows="8" style="border: 1pt solid #071424;"></textarea></center>
</td>
</tr>

<tr><td colspan="2" style="text-align:center; width:100;">
<input type="image" name="submit" src="contact/send.jpg" alt="Submit" width="70" height="35" border="0">
<input type="image" name="reset" src="contact/reset.jpg" alt="Reset" width="70" height="35" border="0">

</td>
</tr>

</table>
</centeR>
</td></tr>

</table>



</form>

pb&j
05-25-2004, 01:39 PM
I get all the data but I also get this:
submit_x
27
submit_y
24
<input type="image" name="submit" src="contact/send.jpg" alt="Submit" width="70" height="35" border="0">


kinda weird.

my theory...
it is the X and Y coordinates of the submit image the spot your clicked on it during your submit click. kinda like an image map thought process. guess this happened cause you are using images on your submit instead of an actual form button.

considering the php script was supposed to kill off the variable named "submit", i am suprised to see this info still being passed to your email. hmmm. gonna have to revise the script a bit i guess.
ok, try this change...

if (!empty($lvalue) && $lvar!="from" && $lvar!="subject" && $lvar!="submit" && $lvar!="Submit" && $lvar!="submit_x" && $lvar!="submit_y") {$message .= "$lvar\n$lvalue\n\n";}}}

Rosey
05-25-2004, 05:11 PM
it worked great! Yeah i am using images, I don't like the plain old submit buttons..didn't think it would be a big deal..LOL

It took a while for me to test, my email is really slow, all of them..makes me wonder but that's another story.

pb&j
05-26-2004, 03:09 AM
:cool: coolness :cool: