agentofnight
i had a few questions
i was wondering how i can close a window after submiting its infomation. this is wat i have
i was also wondering if this loop is secure
and my last question is how can i make a page constantly refresh
i was wondering how i can close a window after submiting its infomation. this is wat i have
| Code: |
|
<?php foreach($_POST as $key => $value){ $$key= $value; } //check msg if ($_POST['name']=="" || $_POST['msg']==""){ echo "Please go back and fill in every field."; } / //Database stuff if('$submit'){ $date=date(" M- d H:i"); $connect=mysql_connect("localhost","root",""); mysql_select_db("learnit"); mysql_query("INSERT INTO shoutbox(date,name,msg) VALUES('$date','$name','$msg')") or die(mysql_error()); mysql_close($connect) or die(mysql_error()); } echo ?> // i want the window to close here, if it doesnt the window remains blank |
i was also wondering if this loop is secure
| Code: |
| foreach($_POST as $key => $value){
$$key= $value; } |
and my last question is how can i make a page constantly refresh
