Log In · Register

 
I submitted a tutorial and...
Maccabee
post Dec 4 2008, 12:14 AM
Post #1


Senior Member
*******

Group: Official Designer
Posts: 5,880
Joined: Nov 2007
Member No: 593,382



it didnt work.

It was a tutorial on how to make a contact form like this:

http://www.wefuze.com/contact/

Because I see so many people that have a contact page that just say their email.

So i made it and when i hit submit the whole page went crazy and started display my code and stuff.

I think it cause the page was reading it and theres a part in the code that if you dont fill it in it wont submit the page so it didnt work.

So how can i submit the tutorial? Can i like pm staff and have them put it up?
 
 
Start new topic
Replies
schizo
post Dec 4 2008, 04:52 PM
Post #2


Senior Member
******

Group: Staff Alumni
Posts: 2,435
Joined: Feb 2007
Member No: 506,205



Uhh...should this be moved to CB Support? I'm going to put it there. Correct me if I'm wrong.

Were there textareas involved anywhere? Those sometimes get messed up during the submission process from what I'm assuming is the whole "textarea within a textarea" thing.

If not...I don't know. Do you still have the link to the tutorial page (on here, not your site)?

 
Maccabee
post Dec 4 2008, 06:32 PM
Post #3


Senior Member
*******

Group: Official Designer
Posts: 5,880
Joined: Nov 2007
Member No: 593,382



QUOTE(schizo @ Dec 4 2008, 03:52 PM) *
Uhh...should this be moved to CB Support? I'm going to put it there. Correct me if I'm wrong.

Were there textareas involved anywhere? Those sometimes get messed up during the submission process from what I'm assuming is the whole "textarea within a textarea" thing.

If not...I don't know. Do you still have the link to the tutorial page (on here, not your site)?


Im not sure if you know php but im almost certain its this:

CODE
if (eregi('http:', $notes)) {
die ("Do NOT try that! ! ");
}
if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,".")))
{
echo "<h2>Use Back - Enter valid e-mail</h3>\n";

$badinput = "<h3>Feedback was NOT submitted</h2>\n";
echo $badinput;
die ("Go back! ! ");

}

if(empty($visitor) || empty($visitormail) || empty($notes )) {

echo "<h3>Use Back - fill in all fields</h3>\n";
die ("Use back! ! ");

}

 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: