Go Back   Trackpads Community > General Discussions > Computer and Technology > Web Design

Web Design Forums and discussions on webdesign

Web Design

Reply
 
LinkBack Thread Tools
Old 07-08-2004, 07:28   #1 (permalink)
mcp6453
Civilians

 
Default Need Help with PHP Script

This message was posted in a PHP newsgroup that has low activity, and
I'm running out of time!

I am trying to use Jack's FormMail script
(http://www.dtheatre.com/scripts/formmail). Since I'm brand new at PHP
and not very good at HTML, I have an easy question, which I will narrow
down. When the email arrives, it has this information:

v_firstname: asdf
v_lastname: asdf
b_email: asdf@bellsouth.net
v_phone: asdf
v_cellphone: asdf
v_address: fdsa
v_city: fdsa
v_zip: 23432
v_interested: join
v_volunteer: on
Submit: Submit

The data is collected by an HTML file called volunteer.htm and is passed
to formmail.php. The only place that "v_firstname" appears in
volunteer.htm is here:

<font face="Arial, Helvetica, sans-serif">First name&nbsp;<input
type="text" name="v_firstname" maxlength="15">

v_firstname does not appear anywhere in formmail.php. I suspect that it
is passed through to the PHP script or the script somehow prints the
name attribute.

So, the question is, what do I need to edit to get rid of "v_firstname:"
in the email?

Thanks!

formmail.php is here:
http://www.dtheatre.com/scripts/sour.../formmail.phps
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Trackpads Information
Click to Visit
Old 07-08-2004, 07:28   #2 (permalink)
AyntRyte
Civilians

 
Default Re: Need Help with PHP Script

mcp6453 wrote:

> This message was posted in a PHP newsgroup that has low activity, and
> I'm running out of time!
>
> I am trying to use Jack's FormMail script
> (http://www.dtheatre.com/scripts/formmail). Since I'm brand new at PHP
> and not very good at HTML, I have an easy question, which I will narrow
> down. When the email arrives, it has this information:
>
> v_firstname: asdf
> v_lastname: asdf
> b_email: asdf@bellsouth.net
> v_phone: asdf
> v_cellphone: asdf
> v_address: fdsa
> v_city: fdsa
> v_zip: 23432
> v_interested: join
> v_volunteer: on
> Submit: Submit
>
> The data is collected by an HTML file called volunteer.htm and is passed
> to formmail.php. The only place that "v_firstname" appears in
> volunteer.htm is here:
>
> <font face="Arial, Helvetica, sans-serif">First name&nbsp;<input
> type="text" name="v_firstname" maxlength="15">
>
> v_firstname does not appear anywhere in formmail.php. I suspect that it
> is passed through to the PHP script or the script somehow prints the
> name attribute.
>
> So, the question is, what do I need to edit to get rid of "v_firstname:"
> in the email?
>
> Thanks!
>
> formmail.php is here:
> http://www.dtheatre.com/scripts/sour.../formmail.phps


I would suspect that just deleting the whole "first name" field (or
commenting it out) would do the trick. Send a test submission afterwards
to see if it shows.

--
\\// Robert

ayntryte @ (that new Google email thingy) dot com

 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-08-2004, 07:29   #3 (permalink)
sma1king
Civilians

 
Default Re: Need Help with PHP Script

"mcp6453" <mcp6453@earthlink.net> wrote in message
news:40E7601E.4CF0@earthlink.net...
> This message was posted in a PHP newsgroup that has low activity, and
> I'm running out of time!
>
> I am trying to use Jack's FormMail script
> (http://www.dtheatre.com/scripts/formmail). Since I'm brand new at PHP
> and not very good at HTML, I have an easy question, which I will narrow
> down. When the email arrives, it has this information:
>
> v_firstname: asdf
> v_lastname: asdf
> b_email: asdf@bellsouth.net
> v_phone: asdf
> v_cellphone: asdf
> v_address: fdsa
> v_city: fdsa
> v_zip: 23432
> v_interested: join
> v_volunteer: on
> Submit: Submit
>
> The data is collected by an HTML file called volunteer.htm and is passed
> to formmail.php. The only place that "v_firstname" appears in
> volunteer.htm is here:
>
> <font face="Arial, Helvetica, sans-serif">First name&nbsp;<input
> type="text" name="v_firstname" maxlength="15">
>
> v_firstname does not appear anywhere in formmail.php. I suspect that it
> is passed through to the PHP script or the script somehow prints the
> name attribute.
>
> So, the question is, what do I need to edit to get rid of "v_firstname:"
> in the email?
>
> Thanks!
>
> formmail.php is here:
>

http://www.dtheatre.com/scripts/sour.../formmail.phps

Your script does not deal with input fields individually - it simply
collects all input fields into an array, and then (simplifying), puts the
array into the outbound message. To remove any input field from the
resulting message, remove the input field from the original form. "<input
....." indicates an input field in the form, as in
'<input type="text" name="v_firstname"...'. So, delete or comment out any
input field in the form that you don't want in the resulting email message.

George


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Useful script perhaps Toby Inkster Web Design 0 08-28-2005 00:00
IE script Error =?Utf-8?B?QWNjZXNzTnViaWU=?= Microsoft Applications 2 12-01-2004 16:00
script.js Kurt Van Keymeulen Microsoft Applications 5 08-02-2004 10:30
Which Script Are They Using? http://links.i6networks.com Web Design 2 08-02-2004 09:30
VB script Antony Microsoft Applications 1 06-16-2004 07:46


Community Information
Options
Quick Options
Trackpads Non-Commercial Ad
Copyright Information Click to Visit
Time
Server Time
All times are GMT -4. The time now is 08:49.
Copyright
Copyright Information
The header is based off of work by Vipixel.com and modified by this site. Trackpads and the Trackpads Logo are both Registered Trademarks of Jason Edwards and cannot be used without prior written permission.  The only exception is as a link back to this site. Trackpads is a private website run by a small legion of volunteers, 3 dogs, 12.5 cats and an army of small, super smart, bio-engineered mice with pointy hats and tutu's. Search Engine Friendly URLs by vBSEO 3.2.0 RC7
Archive Links
Archive Links
Page generated in 0.87410 seconds with 19 queries