| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Respect My Authority! Join Date: Jul 2005 Location: Canada
Posts: 2,236
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | $5 - Simple PHP support needed Hi, I am trying to make a checkout system for the hosting section of my website, ewebproz.com, but am having problems. At the moment, I have just created 'step one', and have no idea how to take the information taken from the form to step two, being a whole new page. Please take a look at http://ewebproz.com/hostingfree1.html. That is 'step one'. I want the info entered by the visitor to go to step two. Then, when the user reaches the last step and press 'finish', I want all of the info entered through out all of the steps to be sent by email to my mail box. So, my only two difficulties are how to take the info entered from one page to another, and how to let the last checkout page send all this info through my formmail script to my email. If you are interested in helping, please add me on MSN, or simply post here the solution, although I may have further questions. Your reward is $5. All contributors will be given positive rep, along with possible NP$ donations .????: NamePros.com http://www.namepros.com/programming/209576-5-simple-php-support-needed.html MSN: kinkarso[at]gmail[dot]com Thank you, Donny |
| |
| | #2 (permalink) |
| Resistance is Futile Join Date: Apr 2006 Location: Montreal, Canada
Posts: 1,094
![]() ![]() ![]() ![]() ![]() ![]() | You could use sessions to send it right through the form, try this: At the beginning use the function session_start(); On the posted pages use this: $_SESSION['domain'] = $_POST['domain']; $_SESSION['subdomain'] = $_POST['subdomain']; etc.... Then when you want the values called use $_SESSION['domain'], etc. EXAMPLE: PHP Code:
__________________ Freelance Web Developer PHP, MySQL, XHTML, CSS, Javascript, jQuery, Wordpress Portfolio: www.bundy.ca |
| |
| | #4 (permalink) | ||||
| Senior Member Join Date: Mar 2005
Posts: 4,948
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| ||||
| |
| | #5 (permalink) |
| Resistance is Futile Join Date: Apr 2006 Location: Montreal, Canada
Posts: 1,094
![]() ![]() ![]() ![]() ![]() ![]() | Thanks, I just put it at the first PHP tag, but nice tip.
__________________ Freelance Web Developer PHP, MySQL, XHTML, CSS, Javascript, jQuery, Wordpress Portfolio: www.bundy.ca |
| |
| | #7 (permalink) |
| Resistance is Futile Join Date: Apr 2006 Location: Montreal, Canada
Posts: 1,094
![]() ![]() ![]() ![]() ![]() ![]() | I have no idea, I have never enabled it, must be something wrong on yours. This works fine on my localhost.
__________________ Freelance Web Developer PHP, MySQL, XHTML, CSS, Javascript, jQuery, Wordpress Portfolio: www.bundy.ca |
| |
| | #9 (permalink) | ||||
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,069
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
????: NamePros.com http://www.namepros.com/showthread.php?t=209576 The only way for you not to receive an error is for you to either explicitly not using cookies, have error reporting turned completely off (in which case you would not see any error but nor would the script work) or you have output buffering turned on. 1 way to check is make a page ussually called phpinfo.php (doesnt really matter) with the following content:- PHP Code:
Last edited by filth@flexiwebhost; 06-22-2006 at 01:26 PM.
| ||||
| |
| | #10 (permalink) |
| Resistance is Futile Join Date: Apr 2006 Location: Montreal, Canada
Posts: 1,094
![]() ![]() ![]() ![]() ![]() ![]() | What version of PHP are you using? This has never happend to me, ever.
__________________ Freelance Web Developer PHP, MySQL, XHTML, CSS, Javascript, jQuery, Wordpress Portfolio: www.bundy.ca |
| |
| | #11 (permalink) | ||||
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,069
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 4.3 the following is quoted from the php manual itself:-
| ||||
| |