troubleshooting Question

delete form tag

Avatar of rgb192
rgb192Flag for United States of America asked on
4 Comments1 Solution316 ViewsLast Modified:
I made the code shorter by deleting the <html> and <head> <body> tags

now I want to delete the form tag
because I want to put this on a content management system that has a form and a jquery table sorter and it is not working on my cms

is this possible
ini_set('error_reporting', E_ALL); 
         if( isset($_POST) && !empty($_POST)) 
                        if(isset($_SESSION['prev']) && $_SESSION['prev']==serialize($_POST)) 
                                echo "Data already processed!"; 
                $msg="You sent " . print_r($_POST,true); 
                //here you can try to save it to the db: 
                //mysql_connect("localhost","username","password") or die($msg."\nunable to connect to server: \n".mysql_error()); 
                //mysql_select_db("dbname") or die($msg."\nUnable to select db: \n" . mysql_error()); 
                //$sql="INSERT INTO tableName(fieldName) VALUES('{$FieldName}')"; 
                //mysql_query($sql) or die($msg."\nUnable to execute query: \n$sql\n".mysql_error()); 
                echo $msg."\nData proccessed successfully"; 

                          <script type="text/javascript" src=""></script> 
                                          var opts={ 
                                                                  url: this.form.action 
                                                                  ,type: this.form.method 
                                                                  ,data:{ } 
//NOTE: ADDED a  return false; 
                                                          return false; 
                          function processResult(data, textStatus){ 
                  <form id='theForm' action='<?php $_SERVER["PHP_SELF"] ?>' method='post'> 
                          <div>Email: <input type='text' id='FieldName' name='FieldName' value=''/></div> 
                          <div><input type='submit' name='Submitter' value='Submit'/></div> 
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros