Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Issues with Tables

Status
Not open for further replies.

chelares

Systems Engineer
Sep 5, 2019
1
BO
Hi, i am new at javascript and what i am doing now its a form in wich i fill all the information whit products, quantity, price, etc. and after i hit "Submit" button an email triggers with a table with all information previously filled, but what happens is that if i fill whit three products a table with two rows is shown at email and products are separated with a coma insted of creating a new row.
as you can see:
Untitled_rd8ixw.png


here is a part of my code:

<table cellpadding=\"2\" cellspacing=\"2\" border=\"1\" style=\"width: 100%; font-size: 10pt;\"> <thead><tr><th>Fecha Pedido</th><th>Fecha Entrega</th><th>Cliente</th><th>Razon Social</th><th>Producto</th><th>Uni. Medida</th><th>Cantidad</th><th>Precio</th><th>Total</th><th>Observ. Cliente</th></tr></thead> <tbody><tr><td>" + Despacho_Realizado_Order_Date + "</td><td>" + Despacho_Realizado.Estimated_Delivery_Date + "</td><td>" + Despacho_Realizado.Customer.Nombre_Cliente + "</td><td>" + Despacho_Realizado.Customer.Razon_Social + "<td>" + Despacho_Realizado.Products.Product.Product_Name + "<br></td><td>" + Despacho_Realizado.Products.Unidad_de_Medida_2 + "<br></td><td>" + Despacho_Realizado.Products.Quantity + "<br></td><td>" + Despacho_Realizado.Products.Unit_Price + "<br></td><td>" + Despacho_Realizado.Products.Total + "<br></td><td>" + Despacho_Realizado_Observaciones_del_Cliente + "<br></td></tr></tbody></table>

hope you can help me
regards
 
we will need to see more of your code to see what is happening, also sending email from the client side is rarely ideal due to security issues / hacking / config etc, so always best done and validated server side

Greg Griffiths
Livelink Certified Developer & ECM Global Star Champion 2005 & 2006
 
I’ll try to check your code to see what’s happening.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top