Forum Moderators: open
<form method="post" action="/url_path/mail.cgi">
<form method="post" action="/url_path/cookies.cgi">
<table border=1 bgcolor="#F5F5F5">
<tr><td><b>Full Name:</b></td>
<td><input name=full_name></td></tr>
<tr><td><b>Email:</b></td>
<td><input name=email></td></tr>
<tr><td><b>your site's contact e-mail address:</b></td>
<td><input name=sitecontact></td></tr>
<tr><td><b>Address1:</b></td>
<td><input name=address1></td></tr>
<tr><td colspan=2><input type=submit value="SUBMIT"></td></tr>
</table>
</form>
As one script will have to set a cookie in your example it is not possible to call a third cgi script to invoke the other two (cookie particular)...so I think cookies.cgi would have to be adapted to invoke mail.cgi or vice versa.
So in the form the action would be cookies.cgi, but you also pass the variables needed for mail.cgi. Then cookies.cgi does it's thing and just before it exits it starts mail.cgi...
Would that work for you ?
Instead, convert cookies.cgi into a library (basically just turn it into a function/group of functions) and then use "require" to include it in any script that needs it. You then call the function(s) you need from cookie.cgi directly after the require line.
This will save you a lot of time in the future.