Novahq.net Forum

Novahq.net Forum (https://novahq.net/forum/index.php)
-   phphq.Net Forums (https://novahq.net/forum/forumdisplay.php?f=277)
-   -   phMailer issue???? (https://novahq.net/forum/showthread.php?t=41253)

softec 06-04-2008 07:47 AM

phMailer issue????
 
Hi to all!

I've downloaded and set up this little script, but it doesn't work, at least running with WAMP Server and in Firefox, it gives me the form totally filled with the php code!

Does anyone has run with this same issue????

Oh, and by the way, can i customize the code???
Ie, translate it to Portuguese???

Many thanks for all the help!

Lakie 06-04-2008 08:14 AM

ive had it running on a WAMP setup fine..

are you allowing short tags in php.ini?

softec 06-04-2008 08:49 AM

Quote:

Originally posted by Mike
ive had it running on a WAMP setup fine..

are you allowing short tags in php.ini?

Thank you for the reply...

I'll have to check it out...

Anyway, i've also noticed that on the top left corner of the form page, it appears the following: 0) {?>

My guess is it also might be an issue with the 5th line here:

PHP Code:

<table align="center" class="table">
    <tr>
        <td colspan="2" class="table_header" width="100%"><?=$websitename;?></td>
    </tr>
[COLOR=orangered]<?If($allowattach > 0) {?>[/COLOR] 
        <tr>
            <td width="100%" class="attach_info" colspan="2">
                <b>Valid Attachment Types:</b> <?=$types?><br />
                <b>Max size per file:</b> <?=$max_file_size?>kb.<br />
                <b>Max combined file size:</b> <?=$max_file_total?>kb.
            </td>
        </tr>
    <?}?>


Scott 06-05-2008 06:07 AM

Theres no problem with the phMailer code nor should there be any problems as long as you are running it on a webserver that supports PHP and php is installed correctly..

Like Mike said, some settings in your php.ini could make that happen. Otherwise I would check you WAMP install.

Create two files:

test1.php
PHP Code:

<?
echo "Hello World";
?>

test2.php
PHP Code:

<?php
echo "Hello World";
?>

If test1.php does not show Hello World when run in your browser but test2.php does enable short tags in your php.ini. If neither show then php is not installed correctly.

Yes you can customize the code to fit your needs.

softec 06-05-2008 07:07 AM

Quote:

Originally posted by Scott

If test1.php does not show Hello World when run in your browser but test2.php does enable short tags in your php.ini. If neither show then php is not installed correctly.

Yes you can customize the code to fit your needs. [/B]
Thanks for the reply.

Both files you posted runs...

In the phmailer script, i've had to change the
PHP Code:

<?=$max_file_size?>

code to
PHP Code:

<? echo $max_file_size; ?>

...
And in some cases i've had to echo all the HTML from the edit boxes...

Quite weird, huh????

Anyway, i'll have to translate the script, and also i'm wondering to make a few code and visual modifications to it....


All times are GMT -5. The time now is 12:02 PM.

Powered by vBulletin®