Help - Search - Members - Calendar
Full Version: I submitted a tutorial and...
Forums > Resource Center > Support Center > Createblog Support > Createblog Resolved Topics
Maccabee
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?
technicolour
In what way did it "not work"?
Maccabee
QUOTE(technicolour @ Dec 3 2008, 11:30 PM) *
In what way did it "not work"?


A code in the tut affected the page.
There was a code for a form and the form doesnt let you use it unless you enter all fields so it didnt let me submit the script because the code in the script wasnt allowing it.

Which when you think about is kinda dangerous cause someone could easily do a mysql injection into createblogs server or whatever.
schizo
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
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! ! ");

}

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.