Second Opinion
Folosind serviciul second opinion ne puteți trimite RMN-uri, CT -uri, angiografii, fișiere .pdf, documente medicale. Astfel vă vom putea da o opinie neurochirurgicală, fără ca aceasta să poată înlocui un consult de specialitate. Răspunsurile vor fi date prin e-mail în cel mai scurt timp posibil (de obicei în mai putin de 24 de ore, dar nu mai mult de 48 de ore). Second opinion – Neurohope este un serviciu gratuit. www.neurohope.ro |
web contact form
Last Updated: Sep 22 2006 13:20, Started by
dinoface
, Aug 28 2006 16:15
·
0
#1
Posted 28 August 2006 - 16:15
Salut
Sper sa fi nimerit bine. As vrea sa schimb la website modul de trimitere al unui email astfel incat sa trimita direct din pagina de web si sa nu mai apeleze un client de email. Din pacate nu ma pricep la php (sau asemanator) si am inteles ca fisierul html pe care pot sa-l fac trebuie integrat intr-un "cod"... Am cautat pe web ceva de genul asta dar nu am gasit... decat ceva perl...(?). Puteti sa-mi dati o indicatie unde pot gasi un script free pentru chestia asta? Cum pot pastra o anumita forma de html (pe care o doresc) atunci cand vine si scriptul? |
#2
Posted 29 August 2006 - 20:50
Trebuie sa ai 2 fisiere:
1. *.html care sa contina " <html><body><font face=Arial size=2> <form method="post" action="contact.php"> <table bgcolor=#ffffcc align=center> <tr><td colspan=2><strong>Contact us using this form:</strong></td></tr> <tr><td>Department:</td><td><select name="sendto"> <option value="[email protected]">General</option> <option value="[email protected]">Support</option> <option value="[email protected]">Sales</option> </select></td></tr> <tr><td><font color=red>*</font> Name:</td><td><input size=25 name="Name"></td></tr> <tr><td><font color=red>*</font> Email:</td><td><input size=25 name="Email"></td></tr> <tr><td>Company:</td><td><input size=25 name="Company"></td></tr> <tr><td>Phone:</td><td><input size=25 name="Phone"></td></tr> <tr><td colspan=2>Message:</td></tr> <tr><td colspan=2 align=center><textarea name="Message" rows=5 cols=35></textarea></td></tr> <tr><td colspan=2 align=center><input type=submit name="send" value="Submit"></td></tr> <tr><td colspan=2 align=center><small>A <font color=red>*</font> indicates a field is required</small></td></tr> </table> </form> </body> </html> " 2. contact.php care sa contina " <?php $to = $_REQUEST['sendto'] ; $from = $_REQUEST['Email'] ; $name = $_REQUEST['Name'] ; $headers = "From: $from"; $subject = "Web Contact Data"; $fields = array(); $fields{"Name"} = "Name"; $fields{"Company"} = "Company"; $fields{"Email"} = "Email"; $fields{"Phone"} = "Phone"; $fields{"list"} = "Mailing List"; $fields{"Message"} = "Message"; $body = "We have received the following information:\n\n"; foreach($fields as $a => ${ $body .= sprintf("%20s: %s\n",$b,$_REQUEST[$a]); } $headers2 = "From: [email protected]"; $subject2 = "Thank you for contacting us"; $autoreply = "Thank you for contacting us. if($from == '') {print "You have not entered an email, please go back and try again";} else { if($name == '') {print "You have not entered a name, please go back and try again";} else { $send = mail($to, $subject, $body, $headers); $send2 = mail($from, $subject2, $autoreply, $headers2); if($send) {header( "Location: http://www.YourDomai.../thankyou.html" );} else {print "We encountered an error sending your mail, please notify [email protected]"; } } } ?> " |
#3
Posted 29 August 2006 - 21:01
Am gasit pe http://www.freedback.com/. Nu trebuie sa sti o boaba de programare. Iti faci forma iar ei iti genereaza codul html. Trebuie sa-ti faci cont.
|
#4
Posted 22 September 2006 - 13:20
catavl, on Aug 29 2006, 22:01, said: Am gasit pe http://www.freedback.com/. Nu trebuie sa sti o boaba de programare. Iti faci forma iar ei iti genereaza codul html. Trebuie sa-ti faci cont. Foarte util...multumesc |
Anunturi
▶ 0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users