Please, I need some help! my contact form stopped working
My client called to tell me the form on her site (or at least the "submit" stopped working. I'm too new at this to figure it out.
here's the link:
http://www.hickersonbrothers.com/Contact_Us/contact_hickerson_brothers_electric.php
Does anyone know what I need to do? Thank you in advance.
jeff
Thank you for taking the time to re-write the code so it'll work. That's over and above all expectations for help.
But before I replace the old code with your new code, I just wanted to know if it's an exact replacement for the excerpt I pasted above or does it somehow fit within the whole page of code?
Here's the whole page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>hickerson_brothers_contact_us</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<META NAME="keywords" CONTENT="Electrical Service, Northern Virginia, VA, Residential Service, Affordable, Fully Trained Professionals, Electric, Service, Electrical, Commercial Service, Residential, Commercial">
<META NAME="description" CONTENT="Hickerson Brothers Electric Service is a family owned and operated business whose members have serviced the Northern Virginia area for over 30 years.We believe in making our customer’s comfort our number one priority. 100% satisfaction guarenteed.">
<style type="text/css">
<!--
body,td,th {
font-family: Times New Roman, Times, serif;
font-size: medium;
color: #000011;
#apDiv1 {
position:absolute;
width:202px;
height:125px;
z-index:1;
left: 13px;
top: 33px;
#apDiv2 {
position:absolute;
width:210px;
height:125px;
z-index:1;
left: 14px;
top: 19px;
#apDiv3 {
position:absolute;
width:258px;
height:222px;
z-index:2;
left: 11px;
top: 152px;
#apDiv5 {
position:absolute;
width:231px;
height:88px;
z-index:3;
left: 656px;
top: 38px;
#apDiv4 {
position:absolute;
width:181px;
height:122px;
z-index:1;
left: 51px;
top: 381px;
#apDiv6 {
position:absolute;
width:496px;
height:312px;
z-index:1;
left: 336px;
top: 452px;
.style2 {font-size: 14px;
font-weight: bold;
#apDiv10 {
position:absolute;
width:534px;
height:72px;
z-index:7;
left: 316px;
top: 698px;
#apDiv {
position:absolute;
width:601px;
height:72px;
z-index:7;
left: 287px;
top: 386px;
#apDiv13 {
position:absolute;
width:235px;
height:191px;
z-index:10;
left: 272px;
top: 170px;
#apDiv7 { position:absolute;
width:271px;
height:212px;
z-index:2;
left: 14px;
top: 152px;
#apDiv8 {
position:absolute;
width:527px;
height:334px;
z-index:0;
left: 273px;
top: 367px;
background-color: #EEEEEE;
#apDiv9 {
position:absolute;
width:630px;
height:332px;
z-index:0;
left: 272px;
background-color: #DDDDDD;
top: 368px;
#apDiv11 {
position:absolute;
width:200px;
height:115px;
z-index:11;
left: 13px;
top: 506px;
#apDiv21 {
position:absolute;
width:236px;
height:98px;
z-index:13;
left: 27px;
top: 697px;
#apDiv18 {
position:absolute;
width:298px;
height:34px;
z-index:12;
left: 651px;
top: 113px;
-->
</style>
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
function MM_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
nbArr[nbArr.length] = img;
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down") {
nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
//-->
</script>
</head>
<body onload="MM_preloadImages('../Assets/Navigation/contactus_up.gif','../Assets/Navigation/pl uggedin_up.gif','../Assets/Navigation/aboutus_down.gif','../Assets/Navigation/aboutus_over .gif','../Assets/Navigation/aboutus_overdown.gif','../Assets/Navigation/residentialservice _down.gif','../Assets/Navigation/commercialservice_down.gif','../Assets/Navigation/commerc ialservice_over.gif','../Assets/Navigation/testimonials_overdown.gif','../Assets/Navigatio n/pluggedin_down.gif','../Assets/Navigation/pluggedin_over.gif','../Assets/Navigation/plug gedin_overdown.gif','../Assets/Navigation/contactus_over.gif','../Assets/Navigation/contac tus_overdown.gif','../Assets/Navigation/commercialservice_overdown.gif','../Assets/Navigat ion/testimonials_down.gif','../Assets/Navigation/testimonials_over.gif','../Assets/Navigat ion/residentialservice_over.gif','../Assets/Navigation/residentialservice_overdown.gif')">
<table width="892" height="571" cellpadding="0" cellspacing="0">
</table>
<table width="892" height="669" cellpadding="0" cellspacing="0">
<caption align="left">
</caption>
<tr>
<th width="890" height="667" scope="row"><div id="apDiv13"><img src="../Assets/Photography/E_phone.jpg" alt="Call Eileen Hickerson Now" title="Call Eileen Hickerson Now" width="255" height="193" /></div>
<div id="apDiv3"><br />
<a href="/About_us/about_us.html" target="_top" onclick="MM_nbGroup('down','group1','Aboutus','../Assets/Navigation/aboutus_down.gif',1)" onmouseover="MM_nbGroup('over','Aboutus','../Assets/Navigation/aboutus_over.gif','../Asse ts/Navigation/aboutus_overdown.gif',1)" onmouseout="MM_nbGroup('out')"><img src="../Assets/Navigation/aboutus_up.gif" alt="About Hickerson Brothers Electric" title="About Hickerson Brothers Electric" name="Aboutus" width="250" height="30" border="1" id="Aboutus" onload="" /></a><br />
<a href="../Residential_service/residential_service.html" target="_top" onclick="MM_nbGroup('down','group1','Residential','../Assets/Navigation/residentialservic e_down.gif',1)" onmouseover="MM_nbGroup('over','Residential','../Assets/Navigation/residentialservice_ove r.gif','../Assets/Navigation/residentialservice_overdown.gif',1)" onmouseout="MM_nbGroup('out')"><img src="../Assets/Navigation/residentialservice_up.gif" alt="Hickerson Brothers Electric Residental" title="Hickerson Brothers Electric Residental" name="Residential" width="250" height="30" border="1" id="Residential" onload="" /></a><br />
<a href="../Commercial_service/commercial_service.html" target="_top" onclick="MM_nbGroup('down','group1','Commercial','../Assets/Navigation/commercialservice_ down.gif',1)" onmouseover="MM_nbGroup('over','Commercial','../Assets/Navigation/commercialservice_over. gif','../Assets/Navigation/commercialservice_overdown.gif',1)" onmouseout="MM_nbGroup('out')"><img src="../Assets/Navigation/commercialservice_up.gif" alt="Hickerson Brothers Electric Commercial" title="Hickerson Brothers Electric Commercial" name="Commercial" width="250" height="30" border="1" id="Commercial" onload="" /></a><br />
<a href="../Testimonials/testimonials.html" target="_top" onclick="MM_nbGroup('down','group1','Testimonials','../Assets/Navigation/testimonials_dow n.gif',1)" onmouseover="MM_nbGroup('over','Testimonials','../Assets/Navigation/testimonials_over.gif ','../Assets/Navigation/testimonials_overdown.gif',1)" onmouseout="MM_nbGroup('out')"><img src="../Assets/Navigation/testimonials_up.gif" alt="Hickerson Brothers Electric Reputation" title="Hickerson Brothers Electric Reputation" name="Testimonials" border="1" id="Testimonials" onload="" /></a><br />
<a href="../Plugged_in/plugged_in.html" target="_top" onclick="MM_nbGroup('down','group1','Pluggedin','../Assets/Navigation/pluggedin_down.gif' ,1)" onmouseover="MM_nbGroup('over','Pluggedin','../Assets/Navigation/pluggedin_over.gif','../ Assets/Navigation/pluggedin_overdown.gif',1)" onmouseout="MM_nbGroup('out')"><img src="../Assets/Navigation/pluggedin_up.gif" alt="Green electricity Plus" title="Green Electricity Plus" name="Pluggedin" width="250" height="30" border="1" id="Pluggedin" onload="" /></a><br />
<a href="/Contact_Us/contact_hickerson_brothers_electric.php" target="_top" onclick="MM_nbGroup('down','group1','Contactus','../Assets/Navigation/contactus_down.gif' ,1)" onmouseover="MM_nbGroup('over','Contactus','../Assets/Navigation/contactus_over.gif','../ Assets/Navigation/contactus_overdown.gif',1)" onmouseout="MM_nbGroup('out')"><img src="../Assets/Navigation/contactus_down.gif" alt="Contact Hickerson Brothers Electric" title="Contact Hickerson Brothers Electric" name="Contactus" border="1" id="Contactus" onload="MM_nbGroup('init','group1','Contactus','../Assets/Navigation/contactus_up.gif',1) " /></a><br />
<br />
<br />
<br />
<br />
</div>
<br /></th>
</tr>
</table>
<div id="apDiv18">
<div align="center">24 Hour Emergency Service</div>
</div>
<div id="apDiv11"><img src="../Assets/Photography/lady_on_phone.jpg" alt="Hickerson Brothers trusted service for over 30 years" title="Hickerson Brothers trusted service for over 30 years" width="254" height="193" /></div>
<div id="apDiv9"></div>
<div id="apDiv6">
<?php
$to = "[email protected]";
$subject = "Online Request for Electrical Problem";
// This is displayed when the email has been sent
$thankyou_message = "<br>
<b>THANK YOU $CustomerName!</b><br><br>
We'll contact you soon.
<p> </p>";
$from_email = "$EmailAddress";
$message = "Customer Name: $CustomerName\n
Email Address: $EmailAddress\n
Primary Phone#: $Primary\n
Secondary Phone#: $Secondary\n
Problem: $Problem\n";
if (!isset($_POST['CustomerName'])) {
?>
<form id="form1" name="form1" method="post" action="<?php echo $PHP_SELF;?>">
<table width="0" cellspacing="0" cellpadding="0">
<tr>
<td><label for="CustomerName">Customer Name:</label></td>
<td><label for="CustomerName"></label>
<input type="text" name="CustomerName" id="CustomerName" /></td>
</tr>
<tr>
<td><label for="EmailAddress">Email Address:</label></td>
<td><label for="EmailAddress"></label>
<input type="text" name="EmailAddress" id="EmailAddress" /></td>
</tr>
<tr>
<td><Primary>Primary Phone#</primary></td>
<td><label for="Primary"></label>
<input type="text" name="Primary" id="Primary" /></td>
</tr>
<tr>
<td><label for="Secondary">Secondary Phone#</label></td>
<td><label for="Secondary"></label>
<input type="text" name="Secondary" id="Secondary" /></td>
</tr>
<tr>
<td><label for="Problem">
<Problem>Electrical Problem:</problem>
</label></td>
<td><label for="Problem"></label>
<textarea name="Problem" id="Problem" cols="45" rows="5"></textarea>
<label for="Problem"></label>
</td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="reset" id="reset" value="Clear Form" /> <input type="submit" name="Submit" id="Submit" value="Submit" /></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="16"> </td>
<td> </td>
</tr>
</table>
<br />
<br />
<br />
<br />
<br />
</form>
<?php
else {
mail("$to", "$subject", "$message", "From:$EmailAddress\r\nReply-to:$EmailAddress");
// Display the thankyou message
echo $thankyou_message;
?>
</div>
<div id="apDiv4"><img src="../Assets/Logos/Slogan.jpg" alt="familytag" width="171" height="116" /></div>
<div class="style2" id="apDiv">Drop us a line and describe what electrical problem you're having. If you're experiencing an emergency, please don't hesitate to call us immediately at: (703) 594-3913. Our phones are answered 24/7. Thank you. And sorry for the inconvenience.</div>
<div class="style2" id="apDiv10">
<p align="center">If you're experiencing an emergency, please don't hesitate to call us immediately at: (703) 594-3913. Our phones are answered 24/7. Thank you.</p>
</div>
<div id="apDiv2">
<div id="apDiv5">
<h1 align="right">(703) 594-3913</h1>
</div>
<a href="../index.html"><img src="../Assets/Logos/Hickerson_bros_hr.jpg" alt="Hickerson Brothers Electric Service" title="Hickerson Brothers Electric Service" width="213" height="126" /></a></div>
</body>
</html>
Thank's for not giving up on me. I will look into a more secure form after this fix - good idea.
jeff
Similar Messages
-
this website make problem for me, he open by it self everytime i try to open another websites
Please i need some help
http://yandex.ru/yandsearch?text=ццц&lr=1004Dude, I don't think there's a user on this forum that would click on that link.
-
Hi Someone Know why my charger is not working properly but always it was been working good but now when conect my iphone (3gs) appears a golden triangle saying :Charging is not Supported with this accessory. Please I Need Some Help Here. Thanks =D
sounds like the cable or the iphone connector are somehow damaged
-
Please I need some help with a table
Hi All
I need some help with a table.
My table needs to hold prices that the user can update.
Also has a total of the column.
my question is if the user adds in a new price how can i pick up the value they have just entered and then add it to the total which will be the last row in the table?
I have a loop that gets all the values of the column, so I can get the total but it is when the user adds in a new value that I need some help with.
I have tried using but as I need to set the toal with something like total
totalTable.setValueAt(total, totalTable.getRowCount()-1,1); I end up with an infinite loop.
Can any one please advise on some way I can get this to work ?
Thanks for reading
CraigHi there camickr
thanks for the help the other day
this is my full code....
package printing;
import java.awt.*;
import java.awt.event.*;
import java.awt.print.*;
import javax.swing.*;
import javax.swing.table.*;
import java.text.DecimalFormat;
public class tablePanel
extends JDialog implements Printable {
BorderLayout borderLayout1 = new BorderLayout();
private boolean printing = false;
private Dialog1 dialog;
JPanel jPanel = new JPanel();
JTable table;
JScrollPane scrollPane1 = new JScrollPane();
DefaultTableModel model;
private String[] columnNames = {
private Object[][] data;
private String selectTotal;
private double total;
public tablePanel(Dialog1 dp) {
dp = dialog;
try {
jbInit();
catch (Exception exception) {
exception.printStackTrace();
public tablePanel() {
try {
jbInit();
catch (Exception exception) {
exception.printStackTrace();
private void jbInit() throws Exception {
jPanel.setLayout(borderLayout1);
scrollPane1.setBounds(new Rectangle(260, 168, 0, 0));
this.add(jPanel);
jPanel.add(scrollPane1, java.awt.BorderLayout.CENTER);
scrollPane1.getViewport().add(table);
jPanel.setOpaque(true);
newTable();
addToModel();
addRows();
setTotal();
public static void main(String[] args) {
tablePanel tablePanel = new tablePanel();
tablePanel.pack();
tablePanel.setVisible(true);
public void setTotal() {
total = 0;
int i = table.getRowCount();
for (i = 0; i < table.getRowCount(); i++) {
String name = (String) table.getValueAt(i, 1);
if (!"".equals(name)) {
if (i != table.getRowCount() - 1) {
double dt = Double.parseDouble(name);
total = total + dt;
String str = Double.toString(total);
table.setValueAt(str, table.getRowCount() - 1, 1);
super.repaint();
public void newTable() {
model = new DefaultTableModel(data, columnNames) {
table = new JTable() {
public Component prepareRenderer(TableCellRenderer renderer,
int row, int col) {
Component c = super.prepareRenderer(renderer, row, col);
if (printing) {
c.setBackground(getBackground());
else {
if (row % 2 == 1 && !isCellSelected(row, col)) {
c.setBackground(getBackground());
else {
c.setBackground(new Color(227, 239, 250));
if (isCellSelected(row, col)) {
c.setBackground(new Color(190, 220, 250));
return c;
table.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent e) {
if (e.getClickCount() == 2) {
if (e.getClickCount() == 1) {
if (table.getSelectedColumn() == 1) {
table.setTableHeader(null);
table.setModel(model);
scrollPane1.getViewport().add(table);
table.getColumnModel().getColumn(1).setCellRenderer(new TableRenderDollar());
public void addToModel() {
Object[] data = {
"Price", "5800"};
model.addRow(data);
public void addRows() {
int rows = 20;
for (int i = 0; i < rows; i++) {
Object[] data = {
model.addRow(data);
public void printOut() {
PrinterJob pj = PrinterJob.getPrinterJob();
pj.setPrintable(tablePanel.this);
pj.printDialog();
try {
pj.print();
catch (Exception PrintException) {}
public int print(Graphics g, PageFormat pageFormat, int pageIndex) throws PrinterException {
Graphics2D g2 = (Graphics2D) g;
g2.setColor(Color.black);
int fontHeight = g2.getFontMetrics().getHeight();
int fontDesent = g2.getFontMetrics().getDescent();
//leave room for page number
double pageHeight = pageFormat.getImageableHeight() - fontHeight;
double pageWidth = pageFormat.getImageableWidth();
double tableWidth = (double) table.getColumnModel().getTotalColumnWidth();
double scale = 1;
if (tableWidth >= pageWidth) {
scale = pageWidth / tableWidth;
double headerHeightOnPage = 16.0;
//double headerHeightOnPage = table.getTableHeader().getHeight() * scale;
//System.out.println("this is the hedder heigth " + headerHeightOnPage);
double tableWidthOnPage = tableWidth * scale;
double oneRowHeight = (table.getRowHeight() + table.getRowMargin()) * scale;
int numRowsOnAPage = (int) ( (pageHeight - headerHeightOnPage) / oneRowHeight);
double pageHeightForTable = oneRowHeight *numRowsOnAPage;
int totalNumPages = (int) Math.ceil( ( (double) table.getRowCount()) / numRowsOnAPage);
if (pageIndex >= totalNumPages) {
return NO_SUCH_PAGE;
g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
//bottom center
g2.drawString("Page: " + (pageIndex + 1 + " of " + totalNumPages), (int) pageWidth / 2 - 35, (int) (pageHeight + fontHeight - fontDesent));
g2.translate(0f, headerHeightOnPage);
g2.translate(0f, -pageIndex * pageHeightForTable);
//If this piece of the table is smaller
//than the size available,
//clip to the appropriate bounds.
if (pageIndex + 1 == totalNumPages) {
int lastRowPrinted =
numRowsOnAPage * pageIndex;
int numRowsLeft =
table.getRowCount()
- lastRowPrinted;
g2.setClip(0,
(int) (pageHeightForTable * pageIndex),
(int) Math.ceil(tableWidthOnPage),
(int) Math.ceil(oneRowHeight *
numRowsLeft));
//else clip to the entire area available.
else {
g2.setClip(0,
(int) (pageHeightForTable * pageIndex),
(int) Math.ceil(tableWidthOnPage),
(int) Math.ceil(pageHeightForTable));
g2.scale(scale, scale);
printing = true;
try {
table.paint(g2);
finally {
printing = false;
//tableView.paint(g2);
g2.scale(1 / scale, 1 / scale);
g2.translate(0f, pageIndex * pageHeightForTable);
g2.translate(0f, -headerHeightOnPage);
g2.setClip(0, 0,
(int) Math.ceil(tableWidthOnPage),
(int) Math.ceil(headerHeightOnPage));
g2.scale(scale, scale);
//table.getTableHeader().paint(g2);
//paint header at top
return Printable.PAGE_EXISTS;
class TableRenderDollar extends DefaultTableCellRenderer{
public Component getTableCellRendererComponent(
JTable table,
Object value,
boolean isSelected,
boolean isFocused,
int row, int column) {
setHorizontalAlignment(SwingConstants.RIGHT);
Component component = super.getTableCellRendererComponent(
table,
value,
isSelected,
isFocused,
row,
column);
if( value == null || value .equals("")){
( (JLabel) component).setText("");
}else{
double number = 0.0;
number = new Double(value.toString()).doubleValue();
DecimalFormat df = new DecimalFormat(",##0.00");
( (JLabel) component).setText(df.format(number));
return component;
} -
Please i need some help time capsule and airport express wireless extender
hello everyone and thank you for looking at my post. i do need some help. i am not very good at the computer programing so i might not use the right terms. i have a time capsule that i just replaced an old pc type router with. i have a fairly large house and can not get wireless signal to the one end of my house. so i went to the apple store and bought an airport express after being told how its just plug and play and itll setup with my time capsule and waala iv just extended my wireless signal. well it did not seam to work that well for me. i have done all the setting up that was told me to in the book to do and i still have get to get a wireless signal out of the express i then hooked up an ethernet wire from the express to my girlfriends macbook. and what do you know now im seeing the express in my airport utility. but then i unplug the ethernet and im back to not seeing the express. what am i doing wrong and what do i need to do. please help me if you can. thanks alot.
Hello fastuca. Welcome to the Apple Discussions!
Let's double-check your base stations' settings ...
o If practical, place the base stations in near proximity to each other during the setup phase. Once done, move them to their desired locations.
o Open AirPort Utility and select the Time Capsule (TC).
o Choose Manual Setup from the Base Station menu, or double-click the base station to open the configuration in a separate window. Enter the base station password if necessary.
o Click AirPort in the toolbar, and then click Wireless.
o Choose “Create a wireless network” from the Wireless Mode pop-up menu, and then select the “Allow this network to be extended” checkbox.
o Next, select the 802.11n AirPort Express Base Station (AXn) that will extend this network, and choose Manual Setup from the Base Station menu, or double-click the base station to open its configuration in a separate window. Enter the base station password if necessary.
o Choose “Extend a wireless network” from the Wireless Mode pop-up menu, and then choose the network you want to extend from the Network Name pop-up menu.
o Enter the base station network and base station password is necessary.
o Click Update to update the base station with new network settings.
(ref: Page 46 of "Designing AirPort Networks Using AirPort Utility) -
Hi all, im a newbie and in need of help on contact form if anybody could help
hi everybody, im new to the site and relatively new to dreamweaver.
i have used a template for my website and edited all the relative information to tailor it to my business.
As i am not familiar with the contact forms i am struggling to find out how to make the form send the information to my email address as i have not got a clue if the contact form is coded correctly,
i would much appreciate any assistence given by any of you, as i am desperately in need of your expertice
i have copied what is in the code for the form, i was wondering if anybody could tell me if this code can be used or not
thank you very much,
StevenHTML forms don't do anything. You need a form-to-email processing script -- preferably one which conceals your e-mail address from harvesters and has built-in spam prevention.
Contact your web host and ask them if they have a script you can use. Hosts often provide scripts on their servers which you can activate through your Admin Panel or by directly referencing the script in your form's action attribute.
<form action="path-to-form-on-server/form-to-email-script.php">
If your host doesn't provide scripts, ask them which server-side languages you can use (php, asp, asp.net, perl, coldfusion, etc...) so you can find a suitable script to use.
Related Links:
Formm@ailer PHP script from DB Masters
http://dbmasters.net/index.php?id=4
FormToEmail.com (free & pro PHP scripts)
http://formtoemail.com/formtoemail_pro_version.php
Tectite
http://www.tectite.com/formmailpage.php
Forms to Go from Bebosoft (script generating software)
http://www.bebosoft.com/products/formstogo/overview/
Wufoo.com (on-line form service)
http://wufoo.com/
Nancy O. -
Im using adobe muse since almost its beginning, since a short time the contact forms are not working. i have change all the settings, what its happening? im not using the creative cloud server?
ok, thank you, im trying to send mails from contact form, after write everithing says forms received. All looks fine but i dont get any mail to my account. I already check my e mails configuration and all was fine. This happends with almost 4 web pages that i have made in muse.
-
PLEASE need some help with contacts syncing
I am not very good at this stuff….I created a gmail account and changed the setting on my IPhone to sync with Google…i assumed that would corrcet a previous issue.
After the sync I went into the gmail account and did not find my contacts…
PLEASE HELP…Apple support could not give me that information after a very long phone conservation.
Perhaps your enquiry was focused on a VPN issue when infact it was an FTP issue.
Question is: Can I create a shortcut or alias on the desktop to have fast access to the root of NAS. I could only got one folder by folder as alias to the desktop, but not the NAS itself
you can create a clickable link I use a safari to do this
In the address bar of safari type
smb://user:password@serveradress
replace user:password with your actual username and pasword for that server and use the correct server address. dont press enter but click on the favicon(globe) to the left of the address and drag it to your desktop. This will make a clickable link on your desktop. -
Projectmix, intel macbook, logic pro 8, please i need some help!
hi all, im pretty new to the world of DAW and interfaces, i recently upgraded to a macbook with logic from a yamaha aw1600 and ive been loving it.
finally got the funds together to purchase an m-audio projectmix i/0 and ive been so exited to crack on with some recording. the initial setup didn't go great, but i eventually found the correct driver for it. the surface works great as a controller at this stage. so i can't wait to get recording audio with it, and this is where the problem hits, NO AUDIO!
i really am getting highly frustrated, this machine was meant to be the answer to my dreams. basically, all controller style settings work perfectly, soloing channels, adjusting levels, motorised faders move beautifully, etc, however, nothing comes out of the headphone outputs, or any output for that matter. so i thought, im sure im doing something wrong. i opened the driver program and sure enough, the driver appeared to have levels from the outputs, ie the headphone outputs and main outputs indicated that audio was being sent out to them, but putting the headphones on and turning up the overall level and headphone level does nothing. when plugging in the headphones there is the regular click and pop of plugging anything in. so there is something going correctly internally, but i dont know what.
furthermore, nothing appears to be going into the inputs of the device either. i tried plugging in a standard microphone and turning up the gain but even the signal led's didnt come on. nothing in, nothing out. so ultimately my device is just a controller so far..
i had planned also to get a presonus digimax D8 as an adat extension of the inputs, to upgrade to having 16 ins, however, with not getting any audio in so far, my dreams of 16 inputs are so far shattered..
ive tried installing, uninstalling, re installing the driver, ive followed the advice on m audio's website, etc, but nothing changes. ive done everything that i can think of or have found information on. im so frustrated its unbelieveable.
also, im new to the mac world, so any information on what leopard and tiger are, and what difference they provide would be great. how can i find out if my system is tiger or whatever? ive looked everywhere on my mac but cant see any indication. do you get tiger or leopard s free downloads? i dont have a clue.
any info about anything would be so helpful. ive read some posts saying there are problems with intel based macs and m audio products. if all else fails, ill have to sell in and get maybe 2 presonus firewire mic preamps and a seperate controller surface..
if anyone else is having a problem similar to this then please reply, otherwise ill cry myself to sleep for the rest of my life ha ha...
also, has anyone had similar connection/audio errors with presonus units?
anything would help guys.
sku89sku89 wrote:
right, thanks, im getting there with the understanding now. can anyone help with the projectmix i/o? i think im just going to pass it on and get two presonus studio projects and daisy chain them, then get a seperate mackie control. can anyone approve of presonus stuff? is the firestudio project a wise choice? i realise it doesnt have toss link in/out, but i can firewire daisy chain them right?
thanks chaps
Hold on....
The Presonus FsP can be finicky too, I have one, they finally released a driver that allows the units to be daisy chained, but I don't think it's been field tested enough just yet. For the longest time driver development was in the can, however the latest ones are a big improvement. The Presonus stuff works best with Texas Instruments Firewire chips. I use a single PM for location recording on an older Acer PC laptop, then use it to mix on the G5.
Why don't we see if we can get the Projectmix working first?
pancenter- -
I need help with my iPhone 5 I'm hearing perfectly but the person receiving the call is not hearing me at all. Can anyone help. Thanks
You can call your carrier for troubleshooting but ultimatly this is common with the Iphone 5 and you will end up needing a warranty replacement.
-
i bought a movie on itunes from my iphone and now im trying to watch the movie in my mac and its not showing on my purchase list on my mac itunes
anyone can give me a help?Did you purchase the movie or rent it? If you rented it, it cannot be transferred from your iPhone.
If you purchased it, are you sure you're using the same Apple ID on your Mac as you are on your iPhone? If not, you would be trying to watch a movie owned by someone else. -
hi every one
I m making a site using dreamweaver and I try to put into the
dreamweaver a fhash menu and the buttons dont work when I export
the flash what can i do ?????????does the swf file work at all? like when you preview it in
flash? -
Please! Need some help here!
public class NobleHouse
private String names;
private int maxno;
private Knight[] knight;
public NobleHouse(String names,int maxno)
this.names=names;
this.maxno=maxno;
knight=new Knight[maxno];
public String getHouseName()
return names;
public int getCurrentKnights()
return maxno;
public Knight getBestKnight()
Knight max=knight[0];
for(int i=1;i<getCurrentKnights();i++)
if(knight.getSkill()>max.getSkill())
max=knight[i];
return null;
public Knight getKnightByName(String names)
for(int i=0;i<getCurrentKnights();i++)
if (knight[i].equals(names))
return knight[i];
return null;
public Knight getNextKnight()
int next=0;
next++;
if(getCurrentKnights() == next)
next=0;
return knight[next];
public void addKnight(Knight next)
int i;
for(i=0;i<getCurrentKnights();i++)
if(next!=null && i<getCurrentKnights())
next=new Knight(next.getName(),next.getJousts(),next.getVictories());
knight[i]=next;
next.setHouseName(names);
public void printKnights()
if(knight[0]==null)
System.out.println("Emty House");
else
for(int i=0;i<getCurrentKnights();i++)
System.out.println(knight[i].getName());
import java.util.*;
import java.text.*;
public class Knight
private String name,type;
private int joust,victories;
public Knight(String name,int joust,int victories)
type="Freelance";
this.name=name;
this.joust=joust;
this.victories = victories;
public String getHouseName()
return type;
public void setHouseName(String housename)
type=housename;
public String getName()
return name;
public int getJousts()
return joust;
public int getVictories()
return victories;
public String getRank()
String a="Squire";
String b="Knight";
String c="Kings Chapion";
if(joust<20 && joust>0)
return a;
else
if(joust>20 && joust<40)
return b;
return c;
public double getBaseSkill()
double ratio;
double totalvictory=getVictories()*getVictories();
double totaljoust=getJousts()*getJousts();
double total=totalvictory/totaljoust;
ratio=Math.sqrt(total);
return ratio;
public int getSkill()
int number=0;
if(getRank()=="Squire")
number=(int) (100*getBaseSkill()*1);
else
if(getRank()=="Knight")
number=(int) (100*getBaseSkill()*1.5);
else
if(getRank()=="Kings Chapion")
number=(int) (100*getBaseSkill()*2);
return number;
public void incrementJousts(boolean won)
joust++;
if(won==true)
victories++;
public boolean joust(boolean won)
Random no = new Random();
won=false;
int knit1=no.nextInt(250)+getSkill();
int knit2=no.nextInt(250)+getSkill();
if(knit1>knit2)
won=true;
incrementJousts(won);
return won;
public void print()
DecimalFormat ft=new DecimalFormat("0.#");
System.out.println("Knights name: "+getName());
System.out.println("Knights rank: "+getRank());
System.out.println("House name: "+getHouseName());
System.out.println("Knights skill: "+ft.format(getSkill()));
public class HouseTest
public static void main(String [] args)
//Create teh NobleHouse object to test...
NobleHouse nh = new NobleHouse("Round Table", 3);
//Now test the methods...
System.out.println("TEST : printKnight() on empty set...");
System.out.println("TEST : (Should say that the house is empty)");
nh.printKnights();
System.out.println();
System.out.println("TEST : addKnight() then calling printKnights()...");
System.out.println("TEST : (Should print Gwain)");
nh.addKnight(new Knight("Gwain", 10, 10));
nh.printKnights();
System.out.println();
System.out.println("TEST : getKnightByName() on Gwain...");
System.out.println("TEST : (Should print Gwains details again)");
Knight k = nh.getKnightByName("Gwain");
k.print();
System.out.println();
System.out.println("TEST : Adding another Knight...");
nh.addKnight(new Knight("Lancalot", 40, 40));
nh.printKnights();
System.out.println();
System.out.println("TEST : getNextKnight()...");
System.out.println("TEST : (Should print \"gwain, lanc, gwain, lanc\")");
k = nh.getNextKnight();
k.print();
k = nh.getNextKnight();
k.print();
k = nh.getNextKnight();
k.print();
k = nh.getNextKnight();
k.print();
System.out.println();
System.out.println();
System.out.println("TEST : Adding one more Knight...");
nh.addKnight(new Knight("Friday", 25, 20));
nh.printKnights();
System.out.println();
System.out.println("TEST : getBestKnight() (should be Lancelot)...");
k = nh.getBestKnight();
k.print();
}I have no error when compiled but when i run the program don't give me the correct result ! (Exception in thread "main" java.lang.NullPointerException)
I think something is wrong at the addKnight() method of the NobleHouse class!
Any idear how to fix it and what is wrong in there????! sothe program will give me the correct result! Thanksee if this works
import java.util.*;
import java.text.*;
class NobleHouse
int next = 0;
private String names;
private int maxno;
private Knight[] knight;
int currentKnights = 0;
public NobleHouse(String names,int maxno)
this.names=names;
this.maxno=maxno;
knight=new Knight[maxno];
public String getHouseName(){return names;}
public int getCurrentKnights(){return currentKnights;}
public Knight getBestKnight()
Knight max=knight[0];
for(int i=1;i<getCurrentKnights();i++)
if(knight.getSkill()>max.getSkill())
max=knight[i];
return max;
public Knight getKnightByName(String names)
for(int i=0;i<getCurrentKnights();i++)
if (knight[i].getName().equals(names))
return knight[i];
return null;
public Knight getNextKnight()
next++;
if(getCurrentKnights() == next)
next=0;
return knight[next];
public void addKnight(Knight next)
int i;
for(i=0;i<maxno;i++)
if(knight[i] == null)
knight[i]=new Knight(next.getName(),next.getJousts(),next.getVictories());
knight[i].setHouseName(names);
currentKnights++;
break;
public void printKnights()
if(knight[0]==null) System.out.println("Emty House");
else for(int i=0;i<getCurrentKnights();i++) System.out.println(knight[i].getName());
class Knight
private String name,type;
private int joust,victories;
public Knight(String name,int joust,int victories)
type="Freelance";
this.name=name;
this.joust=joust;
this.victories = victories;
public String getHouseName(){return type;}
public void setHouseName(String housename){type=housename;}
public String getName(){return name;}
public int getJousts(){return joust;}
public int getVictories(){return victories;}
public String getRank()
String a="Squire";
String b="Knight";
String c="Kings Chapion";
if(joust<20 && joust>0) return a;
else if(joust>20 && joust<40) return b;
return c;
public double getBaseSkill()
double ratio;
double totalvictory=getVictories()*getVictories();
double totaljoust=getJousts()*getJousts();
double total=totalvictory/totaljoust;
ratio=Math.sqrt(total);
return ratio;
public int getSkill()
int number=0;
if(getRank()=="Squire")
number=(int) (100*getBaseSkill()*1);
else
if(getRank()=="Knight") number=(int) (100*getBaseSkill()*1.5);
else if(getRank()=="Kings Chapion") number=(int) (100*getBaseSkill()*2);
return number;
public void incrementJousts(boolean won)
joust++;
if(won==true) victories++;
public boolean joust(boolean won)
Random no = new Random();
won=false;
int knit1=no.nextInt(250)+getSkill();
int knit2=no.nextInt(250)+getSkill();
if(knit1>knit2) won=true;
incrementJousts(won);
return won;
public void print()
DecimalFormat ft=new DecimalFormat("0.#");
System.out.println("Knights name: "+getName());
System.out.println("Knights rank: "+getRank());
System.out.println("House name: "+getHouseName());
System.out.println("Knights skill: "+ft.format(getSkill()));
class HouseTest
public static void main(String [] args)
NobleHouse nh = new NobleHouse("Round Table", 3);
System.out.println("TEST : printKnight() on empty set...");
System.out.println("TEST : (Should say that the house is empty)");
nh.printKnights();
System.out.println();
System.out.println("TEST : addKnight() then calling printKnights()...");
System.out.println("TEST : (Should print Gwain)");
nh.addKnight(new Knight("Gwain", 10, 10));
nh.printKnights();
System.out.println();
System.out.println("TEST : getKnightByName() on Gwain...");
System.out.println("TEST : (Should print Gwains details again)");
Knight k = nh.getKnightByName("Gwain");
k.print();
System.out.println();
System.out.println("TEST : Adding another Knight...");
nh.addKnight(new Knight("Lancalot", 40, 40));
nh.printKnights();
System.out.println();
System.out.println("TEST : getNextKnight()...");
System.out.println("TEST : (Should print \"gwain, lanc, gwain, lanc\")");
k = nh.getNextKnight();
k.print();
k = nh.getNextKnight();
k.print();
k = nh.getNextKnight();
k.print();
k = nh.getNextKnight();
k.print();
System.out.println();
System.out.println();
System.out.println("TEST : Adding one more Knight...");
nh.addKnight(new Knight("Friday", 25, 20));
nh.printKnights();
System.out.println();
System.out.println("TEST : getBestKnight() (should be Lancelot)...");
k = nh.getBestKnight();
k.print(); -
Hi there am new to this but not new to Blackberry's in gen...ive had loads as had a fair few problems with the Torch 2's and Curve 3Gs...so Im now on the Torch 9800 and find that when ever I sync with my mac it keeps overwritting the contacts is there a way to stop this as I am getting increasingly annoyed with Blackerrys....I previously had an Iphone which was syncing well with my Mac (Apple Product.....shock...horror!) and that was fine it was only when I went to BlackBerry's as my friends said that it was much better...I wish I hadn't listened to them now....is there a way to stop the phone and mac to sync one way or the other for example Blackberry ----->Mac or Mac---->Blackberry as its really frustrating either reply to me here or use my bbm
Ok. We're not getting anywhere, are we?
tombyford wrote:
its on a mac as I said the link you gave me was for windows
I know it is on a Mac, I gave you a link for Desktop Software ON A Mac. Not windows.
And unless I am blind, you haven't pointed that out yet. I may be really really blind.
You have yet to state, as I have asked now three times very clearly (I do see that I have) what are you syncing to ON the Mac... to what application ON the Mac? I will be more specific... Entourage, Office, Apple Mail? What?
I'm glad to help here, but perhaps I am not the one who needs to handle this.
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
[SOLVED] I need some help fixing CUPS, it stoped working
hello i'm new here and have been trying to figure out what happended to cups. I installed Arch yesterday and after following the wiki, i had cups working and connected to my ubuntu server( where my printer is) i printed a test page and it was working. this morning cups is not working anymore, i had turn off my computer. the cupsd daemon is in my rc.conf file, but when i do
/etc/rc.d/cupsd restart i get the following:
/etc/rc.d/cupsd: line 6: /etc/rc.d/functions: No such file or directory
/etc/rc.d/cupsd: line 6: /etc/rc.d/functions: No such file or directory
/etc/rc.d/cupsd: line 38: stat_busy: command not found
/etc/rc.d/cupsd: line 44: stat_fail: command not found
/etc/rc.d/cupsd: line 6: /etc/rc.d/functions: No such file or directory
/etc/rc.d/cupsd: line 15: stat_busy: command not found
/etc/rc.d/cupsd: line 21: /usr/sbin/cupsd: Permission denied
/etc/rc.d/cupsd: line 24: stat_fail: command not found
i don't know how to fix it. when i go to http://localhost:631 i'm unable to connect.
this is my /etc/rc.conf :
# /etc/rc.conf - configuration file for initscripts
# Most of rc.conf has been replaced by various other configuration
# files. See archlinux(7) for details.
# For more details on rc.conf see rc.conf(5).
DAEMONS=(syslog-ng network crond sshd acpid dbus alsa cupsd)
# A reasonable DAEMONS array when using sysvinit is:
# DAEMONS=(syslog-ng network crond)
# When using systemd, it is recommended to only enable daemons that
# do not have native systemd service files.
# Storage
# USEDMRAID="no"
# USELVM="no"
# Network
interface=eth0
address=
netmask=
gateway=
# Modules
MODULES=(fglrx dbus pulseaudio equalizer microcode)
I can post anything you guys need me to post here, sorry if its not enough information, i'm still new to linux all together. thanks for the help.
Last edited by lazarojhr16 (2012-10-22 17:06:00)bhrgunatha wrote:
lazarojhr16 wrote:
pulce wrote:
I see on the home page that new installation use systemd by default. Try
# systemctl start cupsd.service
Ok that worked. So this means I'm using systemd. Now my question would be how can i make it start on boot because i have the cups daemon (cupsd) on the rc.conf file. but it doesn't start on boot. Thanks for all the help.
To get it to start on boot run:
systemctl enable cupsd
or if that doesn't work
systemctl enable cups
For some reason on my system I have to use cups NOT cups**d**
thank you. After reading up on systemd I did systemctl enable cupsd and is not working, you saved the day, the second one works (using cups not cupsd)
Maybe you are looking for
-
I keep getting asked for my Mail password when I want to send or receive mail in Mail. I do not know what this password is as I thought it was my Apple ID password, but this fails. I have changed that password so many times recently as I thought th
-
I recently download a song with my IPOD Touch 4G. The song appears in my iTunes music library but not on my IPOD. I've tried syncing several times, but I cannot get it to transfer to the IPOD. Any suggestions?? (This has never happened before to
-
Error in Opening Posting Period in MM
Dear Gurus, I am facign an error when i am opening a posting period in MM. In MMPV, when i open the Period and execute system displays the following error message: Client 300 Period Entered : 112009 Log ABEND MMPV_Date_Check Error Occured (See note 1
-
Oracle BI Publisher Deployment in OC4J Error
Please advise what is happening to my Server. I have BIpublisher deployed in OC4J 10.1.3.1 on Linux Red Hat Environment. Publisher is integrated into our OBIEE sitting on the Same Server. After redeploying the xmlpServer.ear onto OC4J, I am not able
-
I accidentally broke the yellow cartridge of my brand new Laser Printer hp CP1215. I want to just use only other colors like magenta and cyan etc. But the printer is not printing at all because there is no yellow cartridge. Is there a way out to prin