Ciao a tutti, premetto che sono un neofita di asp e che leggendo i vari post nel forum non ho trovato nulla che potesse risolvere il problema.
Ho varie pagine che si chiamano: scheda.asp scheda1.asp scheda2.asp;
ed un altra form.asp dove c'è un form mail.
Io vorrei fare in modo che cliccando su un link che è presente in scheda.asp o scheda1.asp o scheda2.asp e che manda a form.asp dalla mail che mi arriva dal form si capisca da quale scheda è arrivato il link in questione.
Di seguito stralcio il codice che ho provato a scrivere (chiaramente non funzionante).
Premetto che s'è un file include che mi permette di fare un case di "cat" e mandarmi alla pagina webmaster.asp...
scheda.asp
----
...
...
<a href='?cat=webmaster&scheda=scheda1' >Invio al form della voce scheda 1</a>
....
//file include che fa il case
gen_case.asp
----
<%
cat=request.QueryString("cat")
select case cat
case " "
%>
...
<%
case "webmaster"
%>
<!--#include file="form.asp" -->
//form mail ometto la parte in html
form.asp
-----------
<% case "invia"
Set objMail = Server.CreateObject("CDO.Message")
objMail.To = "sdfsdfsdf@mail.net"
objMail.From = request.form("email")
objMail.Subject = "Richiesta informazione per il Webmaster "
....
mbody= mbody & "Messaggio: " & request.querystring("scheda") & vbCrLf & request.form("testo") & Chr(13) & Chr(10)
.....
objMail.TextBody=mbody
objMail.Send
Set objMail = Nothing
response.redirect "?cat=webmaster&op=grazie"
case "grazie"
response.write " Grazie! <br> <br><br>e-mail inviata correttamente <br> vi contatteremo quanto prima"
end select
%>
------
Sper riusciate a trovare la soluzione mi sto scervellando da 5 giorni, ho provato anche con campi hidden di form html ma invano
Grazie mille in anticipo
