/    Sign up×
Community /Pin to ProfileBookmark

I have a php script that someone gave me but I can’t get it to work…

I’m using a feedback script that sends form content to my email, but whenever the submit button is clicked, it tries to download the ‘mailer.php’ file. Then I read something about not having php abilities, is there something special that I have to do in order to get php access? I have absolutely NO php experience and barely any CSS experience. I know enough HTML to get by, but I’m looking for any help. It will be appreciated. Thanks.

to post a comment
PHP

18 Comments(s)

Copy linkTweet thisAlerts:
@pyroDec 13.2003 — First of all, your server must support PHP. If you are running your own server, some of us will probably be able to help you get PHP installed. If you are on a shared server, ask them to install it.

To satisfy my curiosity, take a look at http://www.webdevfaqs.com/php.php#mailer and see if that might happen to be the script you're using... ?
Copy linkTweet thisAlerts:
@MattchuBauthorDec 13.2003 — Yes that is the code that I'm using. Also, my server is through my school so I really don't know if php is installed on it, however, I do have a forum (phpBB2) which I believe is php, so, I don't know what that means.....
Copy linkTweet thisAlerts:
@pyroDec 13.2003 — Yes, phpBB runs on PHP. But, if the mailer.php script is coming up in a download dialog box, it is not being processed by the server.
Copy linkTweet thisAlerts:
@MattchuBauthorDec 13.2003 — So, what do you propose that I do? Also, a nonrelated question, is there a way to stay signed in to this forum instead of logging in every time??
Copy linkTweet thisAlerts:
@pyroDec 13.2003 — Try running this, and see what you get:

test.php
[code=php]<?PHP
echo "I have PHP!";
?>[/code]


If your browser supports cookies, you should stay logged in...
Copy linkTweet thisAlerts:
@MattchuBauthorDec 13.2003 — What do you mean, "run this"? I don't understand. Do you want me to put that in a page? Make a text file? I know absolutely nothing.
Copy linkTweet thisAlerts:
@pyroDec 13.2003 — Yes, make a new text document named test.php, insert the code above, and upload it to your server. Then try running it and see if it prints out "You have PHP!".
Copy linkTweet thisAlerts:
@MattchuBauthorDec 13.2003 — Yes it said that I have php.
Copy linkTweet thisAlerts:
@pyroDec 13.2003 — Please post a link to both this test file, and the form that is causing you grief.
Copy linkTweet thisAlerts:
@pyroDec 13.2003 — It appeared to work for me. If you are not getting the email, please insure that you have set the $to variable correctly
Copy linkTweet thisAlerts:
@MattchuBauthorDec 13.2003 — Yeah I had to make it not redirect, but I wanted it to just refresh the main page so I put the address to that page as the redirect page, but when I made it not redirect, it worked, so I don't know.....
Copy linkTweet thisAlerts:
@MattchuBauthorDec 13.2003 — Alright, I figured it out, it was just a typo. Oopsy. ? Thanks for your help Pyro.
Copy linkTweet thisAlerts:
@pyroDec 13.2003 — Try making it redirect again, and if you have problems, let me know.
Copy linkTweet thisAlerts:
@MattchuBauthorDec 13.2003 — Ooooh I have another question....

Is it possible to make nav bars using php? If you noticed on the main page posted above, my nav bar is a layered drop-down anv bar but I need it to drop over my text instead of just within the specified div. If you can help me with that, that would be wonderful. Thanks.
Copy linkTweet thisAlerts:
@pyroDec 13.2003 — PHP runs server side, and has no control over what the browser does. You will want to use either JavaScript or CSS to do this. Perhaps [URL=http://www.alistapart.com/articles/dropdowns/]this[/URL] ALA article will interest you.
Copy linkTweet thisAlerts:
@MattchuBauthorDec 13.2003 — Thanks, I'll look into that, it looks like just what I'm looking for.
Copy linkTweet thisAlerts:
@pyroDec 13.2003 — You are welcome... ?
×

Success!

Help @MattchuB spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...