Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 12-06-2005, 01:24 AM emailed forms
Average Talker

Posts: 26
Trades: 0
Okay, I have been directed here after countless tries at resolving an issue. I have a form on my site and I am using form2mail. When the form is submitted I am getting all of my data but it is out of order so I am using the line:

<input type="hidden" name="sort" value="order:Insured Name,DBA,FFIN or SSN,Yrs with Workers Compensation,Business Zip Code,Last Year Premium Paid,Current MOD,IF yes how long in yrs,Cur Yr Ins Carrier" />

Once the line is inserted and the page uploaded. When the form is submitted I only get some of the values. For instance right now all I get when submitted is the DBA value. And now looking at it I thought that it was because of the spaces in the list but I have just tried it without the spaces and it still only returns the DBA value.

Does anyone know what is wrong with this line or another way to sort these values in the email?

Thanks

Task
taskhill is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-06-2005, 06:01 AM
Skilled Talker

Posts: 70
Trades: 0
I had a similar problem returning values to text boxes. Try using a session variable at the top of the page like this:

<?php
session_start();
header("Cache-control: private");
?>
Place that code at the top of every page associated with the form you are capturing data from. this will start a session on the server and retain the data.

Place this code at the bottom of the page, just before the </HTML> tag:
<?php session_write_close(); ?>
This will save the session to memory and can be accessed by other pages. Again, place that code in every page associated with the form.

Use this code to destroy the session and redirect the user to the homepage:
<?php
$HTTP_SESSION_VARS = array();
session_destroy();
header("Location: http://www.yoursite.com/");
?>

If any of this is unclear send me a private message and I'll help you out.

Last edited by cerebro89; 12-06-2005 at 06:15 AM..
cerebro89 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to emailed forms
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09975 seconds with 12 queries