Jump to content

need help with simple (?) contact program


hilleljw

Recommended Posts

This little program was given me by the sysad of the network who set up my homepage. I don't know php, so haven't been successful in finding out what the problem is. 

 

When running the program, I get an error message which says, "Warning: eregi(): Delimiter must not be alphanumeric or backslash in /home/mountain/public_html/sendeail.phpon line 52

 

One forum suggested changing "eregi" to "preg_match" to solve the problem, but it didn't; I still get the same error message except the "eregi" is replaced with "preg_match"

 

the program can be tried at http://mountain-dreams.net/contact.php

 

don't be put off by the" sendeail" - it's a misspelling, but the file name is misspelled in the same way. (that is, there is no "sendmail.php" program on the server, just "sendeail.php"

 

the source code can be seen from the above information, but just in case am attaching both contact.php and sendeail.php files

(eregi has been replaced with preg_match in these two files)contact.phpsendeail.php

 

I would really appreciate it if anyone can help.

 

Oh, I forgot to say that the program works perfectly, except for the error message line appearing at the top!

thanks, Hillel in Australia

Edited by hilleljw
Link to comment
Share on other sites

Oh, sadly, :  no responses, as my request slips down toward oblivion. 46 people read it; two apparently tried the program from my homepage... but no ideas how to get rid of this error message! Am I leaving out vital information that someoen might need to fix this?

 

HELP, please!

Link to comment
Share on other sites

If anyone is interested in checking what the corrected version looks like, go to http://mountain-dreams.net/contact2.php   ... Still have lots of work to do on everything though.

 

And I can't figure out how to get the time right.  there is a line which states:    $message = " $todayis [AEST] \n

 

and I tried to change that to : $message = " $todayis [Australia/Brisbane] \n

 

but that succeeded only in making the whole thing disappear!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.