hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : PHP multiple form
Reply

Web Design and Content Subjects include, HTML, graphics, editors, CSS, Flash, graphics creation, placing of ads, ad serv companies, copyright, content and nearly anything else design related. Also talk about businesses that provide design services. If you link to your site, you must post in Web Site Reviews.
Forum Jump

PHP multiple form

Reply Post New Thread In Web Design and Content Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 10-02-2003, 10:50 AM
TheGigabit-West TheGigabit-West is offline
Premium Member
 
Join Date: Sep 2003
Location: Malaysia
Posts: 132

PHP multiple form


How do i do multiple form using PHP code? I means when my customer need to order, they fill up the frist form and then click on next and fill up the second form and click on submit will auto send all the details to my email. How i going to do this??? Help please..

__________________
TheGigabit.com - Malaysia & HongKong Provider
Dedicated Server * Server Co-location * Cloud * VPS * IP Transit * Managed Services | MSN Messenger: west.teoh(at)thegigabit.com

Reply With Quote


Sponsored Links
  #2  
Old 10-02-2003, 11:46 AM
platinum platinum is offline
Aspiring Evangelist
 
Join Date: Jan 2002
Location: Adelaide, Australia
Posts: 405
Best way is to use sessions to track them, check out the sessions section at php.net for more info on them. It's not a "two second job" though, so if you're just starting with php, perhaps find a tutorial or two to get familiar with the language first

Reply With Quote
  #3  
Old 10-02-2003, 03:40 PM
Rich2k Rich2k is offline
Web Hosting Master
 
Join Date: May 2002
Location: UK
Posts: 2,994
either that or put the first page variables as hidden form fields on the second page.

Sessions are great but they have their little 'features' or tricks on different PHP versions and configurations that you need to know. i.e. they don't work in the same way on every configuration.

Reply With Quote
Sponsored Links
  #4  
Old 10-02-2003, 09:00 PM
jjmac78 jjmac78 is offline
Junior Guru Wannabe
 
Join Date: Oct 2003
Location: Arkansas
Posts: 66
It's a little more trouble, but I always create a temporary table entry in my db and compile it into the 'real' table after everything is there. That way everything is saved in case something happens.

Reply With Quote
  #5  
Old 10-02-2003, 09:56 PM
TheGigabit-West TheGigabit-West is offline
Premium Member
 
Join Date: Sep 2003
Location: Malaysia
Posts: 132
Just because I don't know well about php, I had tried to make a php form and it is work and looks fine. But then, how come when i make the second form (same code as the 1st form) when i click on submit, it will auto direct to the 1st form?

__________________
TheGigabit.com - Malaysia & HongKong Provider
Dedicated Server * Server Co-location * Cloud * VPS * IP Transit * Managed Services | MSN Messenger: west.teoh(at)thegigabit.com

Reply With Quote
  #6  
Old 10-02-2003, 10:27 PM
jjmac78 jjmac78 is offline
Junior Guru Wannabe
 
Join Date: Oct 2003
Location: Arkansas
Posts: 66
The form part of the code isnt php. Its just html. You will probably want to look at the action="whatever.php" section in your form tag and see where it points to on the second page. Wherever the action points, thats the script/cgi/whatever that will process that form.

Reply With Quote
  #7  
Old 10-04-2003, 10:48 PM
TheGigabit-West TheGigabit-West is offline
Premium Member
 
Join Date: Sep 2003
Location: Malaysia
Posts: 132
The form part of the code isnt php. Its just html. You will probably want to look at the action="whatever.php" section in your form tag and see where it points to on the second page. Wherever the action points, thats the script/cgi/whatever that will process that form.

--------------------------------------------------------------------------------
no it's not a html format and I got put action="order.php". Check before you said this =).

__________________
TheGigabit.com - Malaysia & HongKong Provider
Dedicated Server * Server Co-location * Cloud * VPS * IP Transit * Managed Services | MSN Messenger: west.teoh(at)thegigabit.com

Reply With Quote
  #8  
Old 10-04-2003, 11:51 PM
jjmac78 jjmac78 is offline
Junior Guru Wannabe
 
Join Date: Oct 2003
Location: Arkansas
Posts: 66
if your form looks like this :

<form action="whatever.php" method="get">
<input type="text" name="whatever">
<input type="submit" value="Go">
</form>

then you are using and HTML form. Period. If not, then I dont know how to help you.

If you're action is set to the same file as the first form, and theres no code telling the process file which form its coming from (like a hidden input) then you will have to point the second form to the correct file to process that info.

If you're not using html forms, then what are you using?

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Lead Generation Part 1 – Form Fills Blog 2012-11-16 09:03:48
VPS Hosting Company SupremeServers Expands Service with Dallas POP Web Hosting News 2012-10-04 14:07:34
Cloud Provider FiberCloud Offers Virtual Firewall Protection Web Hosting News 2012-05-08 12:15:24
Web Host ASEOHosting Acquires IPv4 Address Space for Multiple IP Hosting Web Hosting News 2011-12-29 16:31:34
VMTurbo Releases Cloud Operations Manager for Virtual and Cloud Environments Web Hosting News 2011-07-20 19:00:04


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?