Good night
I have a FORM with a set of data that I enter in a database. This part is solved …
My question is:
How can I simultaneously click the SUBMIT button I insert data in the table and then I open a new page?
THANK YOU TO ALL
form name=“MyFormID” method=“POST” id=“MyFormID” >
<input type="hidden" name="MM_insert" value="MyFormID">
<input type="submit" name="MyFormID" id="btn_form2" value="registar" <?php echo @$_SESSION['MyFormID']; ?>>
</form></td>
lorenw
July 17, 2013, 8:59pm
2
submit your form to process.php.
lets say your form has a field called destination,
You can have a series of if statements and if your destination field has example.com , send them there with this,
header("Location: http://www.example.com/");
Just make sure that there is no white space in process.php or you will get an error that headers have already been sent.
Where should I put the first help they gave me …
With your help I’m trying to get there for me …
but is giving this message:
311: <html xmlns:wdg=“http://ns.adobe.com/addt ”>
312: <head>
313: <title>Inspeções Online - Afocelca</title>
314: <meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1”>
315: <link rel=“stylesheet” href=“…/styles.css” type=“text/css”>
316: <style type=“text/css”>
Where should I put the first help they gave me …
With your help I’m trying to get there for me …
but is giving this message:
Warning: Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\wisegest\insp\upv.php:316)
311: <html xmlns:wdg=“http://ns.adobe.com/addt ”>
312: <head>
313: <title>Inspeções Online - Afocelca</title>
314: <meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1”>
315: <link rel=“stylesheet” href=“…/styles.css” type=“text/css”>
316: <style type=“text/css”>
lorenw
July 17, 2013, 11:59pm
5
Look at line 316, if you have an echo or anything that prints before that you have output, you have that error, see my fist post, your cant even have a space before <? php
.