/    Sign up×
Community /Pin to ProfileBookmark

reference html variables in php???

Specifically I have a form with multiple fields in one .shtml document. I also have a php document design to use the mail() function and include some parameters from which are going to be information from the fields in the .shtml doc.

Both documents work separately and i have tried everything i could think of (which isn’t much because i am a php noob ) to ‘link’ the two files so the name of the fields in the .shtml document could be referenced in the php document.

I have gotten as far as getting the .shtml document to load and the javascript on that page to execute when the submit button is hit. I then load the php document and runs the correct script and even sends an email but it is blank; none of the parameters specified in the mail() function are included in the email.

i am out of ideas and google has not been very helpful thus far so i am turning to the community for help.

thanks in advance. if you need to see the code i have just ask.

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@xeteaJun 29.2010 — It would be easier if you posted the code as well.

Otherwise, you might want to look up $_GET and $_POST.
Copy linkTweet thisAlerts:
@spotted_zebraauthorJun 29.2010 — Yea i finally got it. it was something to do with the enctype was wrong.

Thanks for the post though.
×

Success!

Help @spotted_zebra 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 5.9,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...