Visualizzazione dei risultati da 1 a 2 su 2

Discussione: php e access

  1. #1
    Utente di HTML.it
    Registrato dal
    May 2007
    Messaggi
    1,804

    php e access

    salve ragazzi vorrei fare un lavoro ma sensa il vostro aiuto sono sicuro non ce lo potro fare io ho un form in flash che invia i dati attraverso il php e tutto funsionante soltanto che vorrei che tutti i dati vengano salvati su un db access io ne ho creato uno l ho chiamato form con un unica tabbella di cui il primo campo e id contatore e poi i dati del forum cosa si puo fare cosa posso aggiungere a questo php?
    attendo vostre notizie in fede rocco
    Codice PHP:
    <?  $adminaddress "info@xxxxxxxxxxxx.com"
    $siteaddress ="http://www.xxxxxxxxxxxxxxxxxx.com"
    $sitename "marikweb"

    //No need to change anything below ... 
    // Gets the date and time from your server
    $date date("m/d/Y H:i:s");

    // Gets the IP Address
    if ($REMOTE_ADDR == ""$ip "no ip";
    else 
    $ip getHostByAddr($REMOTE_ADDR);

    // Gets the POST Headers - the Flash variables
    $action $HTTP_POST_VARS['action'] ;
    $email $HTTP_POST_VARS['email'] ;
    $name $HTTP_POST_VARS['name'] ;
    $comments $HTTP_POST_VARS['comments'] ;
    $telefono $HTTP_POST_VARS['telefono'] ;
    $oggetto $HTTP_POST_VARS['oggetto'] ;

    //Process the form data!
    // and send the information collected in the Flash form to Your nominated email address

    if ($action == "send") {
        
    //
        
    mail ("$adminaddress","informazioni",
        
    "Il visitatore ha lasciato le seguenti informazioni \n
        Name: 
    $name 
        Email: 
    $email\n
        Telefono: 
    $telefono 
        Messaggio:
        ------------------------------
        
    $comments
        
        Logged Info :
        ------------------------------
        Using: 
    $HTTP_USER_AGENT
        Hostname: 
    $ip
        IP address: 
    $REMOTE_ADDR
        Date/Time:  
    $date","FROM:$email) ; 
        
        
    //This sends a confirmation to your visitor
        
    mail ("$email","Re:"
        
    "Salve $name,\n
    abbiamo ricevuto il suo messaggio e presto sarà contattato.\n
         By,
        
    $sitename
        
    $siteaddress","FROM:$adminaddress") ; 
        
        
    //Confirmation is sent back to the Flash form that the process is complete
        
    $sendresult "Thank you. You will receive a confirmation email shortly.";
        
    $send_answer "answer=";
        
    $send_answer .= rawurlencode($sendresult);
        echo 
    $send_answer;
    //


    ?>
    __________________

  2. #2
    Utente di HTML.it L'avatar di wallrider
    Registrato dal
    Apr 2003
    Messaggi
    2,755
    1) hai la tastiera rotta, i tasti con le punteggiature non ti funzionano
    2) forum sbagliato, sei nella sezione ASP


    RIP Cicciobenzina 9/11/2010

    "Riseminaciceli, i ceci nell'orto"

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.