Wednesday 15 June 2011

php - Refresh page after form submiting -


My problem is I want to reload my page after submitting the form.

  & lt; Form method = "post" action = "" & gt; & Lt; Textarea cols = "30" rows = "4" name = "update" id = "update" max length = "200" & gt; & Lt; / Textarea & gt; & Lt; Br / & gt; & Lt; Input type = "submit" value = "update" id = "update_button" class = "update_button" /> & Lt; / Form & gt;    

only use

  echo "& lt; Meta Http-equiv = 'refresh' content = '0' & gt; "; For example, after encrypting   

)

  if (isset ($ _ POST ['submit'])) {SQL QUERY --- - echo "& lt; meta http-equiv = 'refresh' content = '0' & gt;"; }    

No comments:

Post a Comment