Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Directory Submission Service   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 06-18-2004, 09:38 PM   #1 (permalink)
Contributing Member
 
clasione's Avatar
 
Join Date: 04-26-04
Location: NEW YORK USA - THE CITY THAT NEVER SLEEPS
Posts: 271
iTrader: 0 / 0%
Latest Blog:
None

clasione is liked by somebodyclasione is liked by somebodyclasione is liked by somebodyclasione is liked by somebodyclasione is liked by somebody
Send a message via MSN to clasione
PHP assistence

Anyone know how I could get this script to not only send me the answers, but the questions aswell?????


<?php

$find = $_REQUEST['find'] ;
$type = $_REQUEST['type'] ;
$name = $_REQUEST['name'] ;
$phone = $_REQUEST['phone'] ;
$city = $_REQUEST['city'] ;


mail( "johnc@longislandexchange.com", "Advertising Request LIE",
$HTTP_REFERER."\n\n".$find."\n\n".$type."\n\n".$na me."\n\n".$phone, "From: LONGISLANDEXCHANGE" );

header( "Location: http://www.longislandexchange.com/thankyou.html" );

?>


_______________
I break for PR
Google Lover/Hater
Searchen Networks Inc.
www.ipagerank.com
www.searchen.com
www.searchengineoptimization1.com
clasione is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 06-19-2004, 02:34 AM   #2 (permalink)
Inactive
 
Join Date: 06-18-04
Posts: 3
iTrader: 0 / 0%
Latest Blog:
None

4737carlinsir is liked by many
Not sure if this is what you mean, but can you not just add the question to each variable.

<?php

$find = "Thing to find is a $_REQUEST['find']";
$type = "This is of type $_REQUEST['type']" ;
$name = "Name $_REQUEST['name']" ;
$phone = "Phone : $_REQUEST['phone']" ;
$city = "City : $_REQUEST['city']" ;

...................... rest of your script
?>

By assigning the string to your existing variables the mail function code of your script will not require changing.

Hope this is what you meant.
4737carlinsir is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-19-2004, 06:48 AM   #3 (permalink)
Inactive
 
Leader of Men's Avatar
 
Join Date: 10-12-03
Location: Minnesota, USA
Posts: 2,207
iTrader: 0 / 0%
Latest Blog:
None

Leader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really nice
Send a message via AIM to Leader of Men Send a message via MSN to Leader of Men Send a message via Yahoo to Leader of Men
Re: PHP assistence

So what you're saying is:
[code:1:760829307a]
<?php

$find = $_REQUEST['find'];
$type = $_REQUEST['type'];
$name = $_REQUEST['name'];
$phone = $_REQUEST['phone'];
$city = $_REQUEST['city'];

$answers = " Question 1 here: $find \n Question 2 here: $type \n Question 3 here: $name \n Question 4 here: $phone \n Question 5 here: $city";

mail("johnc@longislandexchange.com", "Advertising Request LIE", "$answers");

?>
[/code:1:760829307a]
That will work if your $_REQUEST stuff does.

Any more help needed just ask.
Leader of Men is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-19-2004, 12:09 PM   #4 (permalink)
Contributing Member
 
clasione's Avatar
 
Join Date: 04-26-04
Location: NEW YORK USA - THE CITY THAT NEVER SLEEPS
Posts: 271
iTrader: 0 / 0%
Latest Blog:
None

clasione is liked by somebodyclasione is liked by somebodyclasione is liked by somebodyclasione is liked by somebodyclasione is liked by somebody
Send a message via MSN to clasione
Thank you much my friends..... I will try both suggestions just as soon as I get a free moment to play with ----- I'll let you know....

:wink: :wink: :wink:
clasione is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-21-2004, 09:09 PM   #5 (permalink)
Contributing Member
 
clasione's Avatar
 
Join Date: 04-26-04
Location: NEW YORK USA - THE CITY THAT NEVER SLEEPS
Posts: 271
iTrader: 0 / 0%
Latest Blog:
None

clasione is liked by somebodyclasione is liked by somebodyclasione is liked by somebodyclasione is liked by somebodyclasione is liked by somebody
Send a message via MSN to clasione
Re: PHP assistence

Quote:
Originally Posted by Leader of Men
So what you're saying is:
[code:1:2433d3e390]
<?php

$find = $_REQUEST['find'];
$type = $_REQUEST['type'];
$name = $_REQUEST['name'];
$phone = $_REQUEST['phone'];
$city = $_REQUEST['city'];

$answers = " Question 1 here: $find \n Question 2 here: $type \n Question 3 here: $name \n Question 4 here: $phone \n Question 5 here: $city";

mail("johnc@longislandexchange.com", "Advertising Request LIE", "$answers");

?>
[/code:1:2433d3e390]
That will work if your $_REQUEST stuff does.

Any more help needed just ask.

Thank you..... You solved a big headache for me.... :wink:

Thanks all for the help....
clasione is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-21-2004, 09:10 PM   #6 (permalink)
Contributing Member
 
clasione's Avatar
 
Join Date: 04-26-04
Location: NEW YORK USA - THE CITY THAT NEVER SLEEPS
Posts: 271
iTrader: 0 / 0%
Latest Blog:
None

clasione is liked by somebodyclasione is liked by somebodyclasione is liked by somebodyclasione is liked by somebodyclasione is liked by somebody
Send a message via MSN to clasione
Re: PHP assistence

Quote:
Originally Posted by Leader of Men
So what you're saying is:
[code:1:d1093968cc]
<?php

$find = $_REQUEST['find'];
$type = $_REQUEST['type'];
$name = $_REQUEST['name'];
$phone = $_REQUEST['phone'];
$city = $_REQUEST['city'];

$answers = " Question 1 here: $find \n Question 2 here: $type \n Question 3 here: $name \n Question 4 here: $phone \n Question 5 here: $city";

mail("johnc@longislandexchange.com", "Advertising Request LIE", "$answers");

?>
[/code:1:d1093968cc]
That will work if your $_REQUEST stuff does.

Any more help needed just ask.

Thank you..... You solved a big headache for me.... :wink:

Thanks all for the help....
clasione is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-22-2004, 04:50 AM   #7 (permalink)
Inactive
 
Leader of Men's Avatar
 
Join Date: 10-12-03
Location: Minnesota, USA
Posts: 2,207
iTrader: 0 / 0%
Latest Blog:
None

Leader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really nice
Send a message via AIM to Leader of Men Send a message via MSN to Leader of Men Send a message via Yahoo to Leader of Men
No problem...

and

No problem
Leader of Men is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 03:38 PM.
© Copyright 2008 V7 Inc

Click Here