Sending information

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sonny100
Forum Newbie
Posts: 2
Joined: Thu Jan 29, 2009 8:28 am

Sending information

Post by sonny100 »

Hi there,

I have a site that i'm working on at the moment where users can get a quote for a service. When the form is submitted, the user is taken to a differant page where the $quoteprice is displayed.

I want to add a button called 'Contact me regarding this quote' which when clicked, will send the users details to a sendmail.php file that in turn emails the details to me. The users details have already been collected on the previous page, and are stored in this page as the form results.

How can I therefore send information from the quote results page to the sendmail.php file at the click of a button?

If I create a HTML form, then can I automatically enter into this form information that I have already gathered?

Or is there a way of sending the information to the sendmail.php file, on a button click, without using a HTML form?

Thanks!
sonny100
Forum Newbie
Posts: 2
Joined: Thu Jan 29, 2009 8:28 am

Re: Sending information

Post by sonny100 »

No worries, sussed it!

Code: Select all

<input name="quoteprice" type="hidden" value= "<?php echo $quoteprice ?>" />
                <input name="name1" type="hidden" value= "<?php echo $name1 ?>" />
Post Reply