/    Sign up×
Community /Pin to ProfileBookmark

ok, i can’t figure this out, yet i am no0b in php right now.

i have a form, once the user has filled it out and hits the submit button, i would like the info to be sent to my email address….

[CODE]<form method=”#” action=”#”>

Site Name <input type=text name=table size=40> <br><br>
88×31 URL <input type=text name=table size=40><br><br>
Why Should We Affiliate? <input type=text name=table size=40><br><br>
Number Of Members <input type=text name=table size=20><br><br>

<input type=submit>
</form> [/CODE]

what do i fix so it sends the info to my email?

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@1_elem3ntauthorJan 23.2005 — ok i tested that, and it only sent the 1st table, none of the other 3

i tested the 1st one because it looked simple ?
Copy linkTweet thisAlerts:
@96turnerriJan 23.2005 — [i]Originally posted by 1.elem3nt [/i]

[B]i tested the 1st one because it looked simple ? [/B][/QUOTE]


? i'm honoured thats my script, the reason that it only sends one table is because it when submitting a from it creates an array $_POST['field_name'] == $value and you have 4 fields called 'table' and it overides previous ones (or it takes the first) i cant remember but you need to call each field a different name

<form method="#" action="#">

Site Name <input type=text [COLOR=red]name=sitename[/COLOR] size=40> <br><br>

88x31 URL <input type=text [COLOR=red]name=url[/COLOR] size=40><br><br>

Why Should We Affiliate? <input type=text [COLOR=red]name=why[/COLOR] size=40><br><br>

Number Of Members <input type=text [COLOR=red]name=nomembers[/COLOR] size=20><br><br>

<input type=submit>

</form>

would work
Copy linkTweet thisAlerts:
@1_elem3ntauthorJan 23.2005 — thank you very much ?

ok quick problem..

when i enter a url into the 88x31 url table, the url links up with the Why? table in the email.

how can i fix this?
Copy linkTweet thisAlerts:
@96turnerriJan 23.2005 — your welcome, happy to have helped

take notice of the link at the bototm of the email you recieve :p
Copy linkTweet thisAlerts:
@1_elem3ntauthorJan 23.2005 — yes i saw that link... visiting it right now


&lt;form action="http://php.richardturner.com/mailer.php" method="post"&gt;
&lt;p&gt;
&lt;input type="hidden" name="form_email" value="[email protected]" /&gt;&lt;br /&gt;
&lt;input type="hidden" name="form_thankyou" value="http://www.YOURSITE.com/THANKYOUPAGE.HTML" /&gt;&lt;br /&gt;

Site Name &lt;input type="text" name="Site Name" size="40"&gt; &lt;br&gt;&lt;br&gt;
Site URL &lt;input type="text" name="URL" size="40"&gt;&lt;br&gt;&lt;br&gt;
88x31 URL &lt;input type="text" name="88x31 URL" size="40"&gt;&lt;br&gt;&lt;br&gt;
Why Should We Affiliate? &lt;input type="text" name="Why?" size="40"&gt;&lt;br&gt;&lt;br&gt;
Number Of Members &lt;input type="number" name="Members" size="20"&gt;&lt;br&gt;&lt;br&gt;
&lt;br /&gt;
&lt;input type="submit" value="Submit" /&gt;
&lt;/p&gt;
&lt;/form&gt;
×

Success!

Help @1_elem3nt 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.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

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