I'd like to put in the source of the content page my own form for example:
<form action="my_script.php" method="post" name="name" id="name">
<input type="company_name" name="textfield">
This form will run my_script.php. The script should process variables sended by post (in this example company_name variable), then give some results (from my own databases) and put it back one the webpage.
How to do it, cause now I have SS parsing error (cant parse form tag):
14 March 2008 at 9:26am
right so using the the tutorial code as a template.. theres 2 PHP functions 1- BrowserPollForm() this is the function to output the form so this will be where you add your text fields and submit buttons etc... The second function doBrowserPoll() is much more interesting. This method is what is called when people submit the form.
So I don't know what your my_script.php file does but if you copy the code from that into the doBrowserPoll() function (replacing variables etc etc) and use that method to connect to your database and process the form / do whatever you want.
If you post some code someone might be able to look into it for you.