Jump to content

JohnTipperton

Members
  • Posts

    60
  • Joined

  • Last visited

Everything posted by JohnTipperton

  1. to insert string with double quotes and single quotes in mysql tables use mysql_real_escape_string(); example : $variable = mysql_real_escape_string($variable);
  2. you should relate the userid in the table story to identify if the created the content.
  3. good so it works now?
  4. opps sorry i forgot to add the time :D but uniqid i prefer
  5. +1 yes correct.
  6. he should be using the session when he is in the second part to store the variable since he is trying to create a 2 way submission. Edited Code you need to use POST or GET . index.php <form name="test" action="view.php" id="test" method="post"> <input type="radio" name="Whale" id="Whale" value="Whale"/> <input type="radio" name="Shark" id="Shark" value="Shark"/> <input type="submit" value="Order" /> </form> view.php <?php $Whale=$_POST['Whale']; $Shark=$_POST['Shark']; $_SESSION['Whale']=$Whale; $_SESSION['Shark']=$Shark; echo 'You Select '.$Whale.'</br>'; echo 'You Select '.$Shark.'<br>'; ?> <form name="test" action="view2.php" id="test" method="post"> <input type="radio" name="Frozen" id="Frozen" value="Frozen"/> <input type="radio" name="Iced" id="Iced" value="Iced"/> <input type="submit" value="Order" /> </form> view2.php <?php $Iced=$_POST['Iced']; $Frozen=$_POST['Frozen']; $Whale=$_SESSION['Whale']; $Shark=$_SESSION['Shark']; echo 'You Select '.$Whale.'</br> it has been'.$Iced; echo 'You Select '.$Shark.'<br> it has been'.$Frozen; ?> this is just a sample you will do the algorithm.. you may use POST or GET.
  7. you need to use POST. index.php <form name="test" action="view.php" id="test" method="post"> <input type="radio" name="Cake" id="Cake" value="Cake"/> <input type="radio" name="Bread" id="Bread" value="Bread"/> <input type="submit" value="Order" /> </form> view.php <?php $Bread=$_POST['Bread']; $Cake=$_POst['Cake']; echo 'You Select '.$Bread.'</br>'; echo 'You Select '.$Cake.'<br>'; ?>
  8. try to replace the actual name to a certain algorithm such as userid the time and date so the filename will be unique code should be like this $UploaderID=1 // assume the value of the uploader in the database is 1 $GeneratedFilename = $Uploader + date("Ymd"); // then this code will generate the filename.
  9. can you post your code regarding your problem or some screenshots?
  10. what exactly result do you want to appear? is it a mail form with javascript validation and a css mail form result? http://css-tricks.com/sending-nice-html-email-with-php/ try this link this email form contains CSS.
×
×
  • 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.