Saturday, 15 August 2015

php submission form using nl2br -


I try to create a form to upload a file through my site to visitors, I send it to e-mail. This is my code, although no files have been uploaded and sent to my declared e-mail. I appreciate it if you can give me an indication.

  & lt ;? Includes Php ('init.php'); $ Stitle = "Submit a Manufacturing"; Include ('head.php'); ? & Gt; & Lt; Link rel = "stylesheet" type = "text / css" href = "view.css" media = "all" & gt; & Lt; Script type = "text / javascript" src = "view.js" & gt; & Lt; / Script & gt; & Lt; Width of table = "1100" align = "center" style = "border-bottom-right-radius: 20px;" & Gt; & Lt; Td bgcolor = "# ffffff" & gt; & Lt ;? Include php ('nav.php'); If (! $ _ POST ['title']) {? & Gt; & Lt; Table cells = "4" width = 100%> & lt; Tr & gt; & Lt; Td bgcolor = "eeeeee" width = "100%" valign = "top" & gt; & Lt; H3 & gt; Form & lt; / H3 & gt; & Lt; / TD & gt; & Lt; TD & gt; & Lt; Body id = "main_body" & gt; & Lt; Div id = "form_container" & gt; & Lt; H1 & gt; Upload & lt; / H1> & Lt; Form id = "form_373615" class = "epitron" enctype = "multipart / form-data" method = "post" action = "" & gt; & Lt; P & gt; Please complete all the boxes on this form. & Lt; / P & gt; & Lt; / Div & gt; & Lt; If ($ _POST ["email"]  & Lt; Td width = "71%" & gt; & Lt; Input name = "name" type = "article" id = "name" size = "32" & gt; & Lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td class = "bodytext" & gt; Email address: & lt; / Td> & Lt; Td> & Lt; Input name = "email" type = "text" id = "email" size = "32" & gt; & Lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td class = "bodytext" & gt; Comment: & lt; / Td> & Lt; Td> Texarea name = "comment" cols = "45" rows = "6" id = "comment" class = "bodytext" & gt; & Lt; / Textarea & gt; & Lt; / Td> & Lt; / TR & gt; & Lt; Td width = "29%" class = "bodytext" & gt; Upload your file & lt; / Td> & Lt; Td width = "71%" & gt; & Lt; Input type = "file" name = "uploaded file" & gt; & Lt; / Td> & Lt; / TR & gt; & Lt; Td align = "left" valign = "top" & gt; Input type = "submit" name = "submit" value = "send" & gt; & Lt; / Td> & Lt; / P & gt; & Lt; / TR & gt; & Lt; / Table & gt; & Lt; / Form & gt; First upload the file to the server and then attach the file to the mail.  


No comments:

Post a Comment