Jump to content

Liru

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Everything posted by Liru

  1. My code: <?php if ($_REQUEST['poll_question']){ include 'database_info.php'; //Seeing how many options were filled in switch ($_REQUEST['poll_question']){ case ($_REQUEST['option_4'] != ''): $options = $_REQUEST['option_1'] ." | ".$_REQUEST['option_2'] ." | ".$_REQUEST['option_3'] ." | ".$_REQUEST['option_4']; break; case ($_REQUEST['option_3'] !=''): $options = $_REQUEST['option_1'] ." | ".$_REQUEST['option_2'] ." | ".$_REQUEST['option_3']; break; case ($_REQUEST['option_2'] !=''): $options = $_REQUEST['option_1'] ." | ".$_REQUEST['option_2']; break; case ($_REQUEST['option_1'] !=''): die("The poll needs more then one option."); break; mysql_query = ("INSERT INTO poll VALUES ('','".mysql_real_escape_string($_REQUEST['poll_question']."', '".mysql_real_escape_string($options)."', ".time().")"); echo "The poll has been created."; }else{ <form name="poll_submit" action="<?php $_SERVER[php_SELF];?>" method="POST"> Poll Question: <input type="text" name="poll_question"> <br /> Poll Options: <br /> <input type="text" name="option_1"> <br /> <input type="text" name="option_2"> <br /> <input type="text" name="option_3"> <br /> <input type="text" name="option_4"> <br /> <input type="submit"> </form> } ?> What did I do wrong? I get this error. Parse error: syntax error, unexpected '=' in /home/moviefli/spambb.com/index.php on line 83
  2. What errors are they?
  3. Link: http://topicflix.com/contact-us.php You can see my Recaptcha and it looks kinda werid the text box where you put the text and stuff is kinda hanging on the right side when it should be on the left side. How can I fix that? Here is my code of my contact page entirely also with the Recapatcha where it is and stuff. <h3>Contact <span>Form</span></h3> <form id="contacts-form" action="" method="post"> <fieldset> <div class="field"><label>Your Name:</label><input type="text" value=""/></div> <div class="field"><label>Your E-mail:</label><input type="text" value="" name="from"/></div> <div class="field"><label>Title:</label><input type="text" value=""/></div> <div class="field"><label>Your Message:</label><textarea cols="1" rows="1" name="msg"></textarea></div> <form method="post" action="verify.php"> <?php require_once('recaptchalib.php'); $publickey = "*hides key*"; // you got this from the signup page echo recaptcha_get_html($publickey); ?> </form> <br />
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.