refresh before post
Posted by: gonewthewind
Posted on: 2005-05-02 21:40:00
Hi, I have a dilema...
I have pageone.php, which contains an inner script, that posts from pageone username, city, state and whenuwanttostart. It posts from within the php page and not an external script. I get an email (results from pageone.php) from this first page when they submit (username, city, state and whenuwanttostart,) all the code is on this page and there is no external cgi post, all of the code is within this first page. Then, technically speaking, it goes to a thank you page. On this page, they can add additional information. I want this page to have(echo) their username, city, state and whenuwanttostart post here (echo the previous pages info). But, due to the fact that the first script/page doesn't "technically" go to another page (or script,) (you know, I am a lamehead about php and scripts and can't actually speak the correct terminology, but I will try to explain,) session's does not work. The only way I could make it work is to somehow refresh the first page, then have the sessions follow. So, I decided to use cookies. But, this was a disaster.
My form results in my email is (sometimes) Jane Doe, janedoe@emailplace.com (even in this forum, I cannot make the % (and) 40 in between janedoe and email place.com show what I am getting.)
I want the results to be Jane Doe, janedow@emailplace.com
This does not always happen. It only happens either
1. after the user submits the first form. The second form submits the special characters.
2. if the user already has cookies set with either contact, email, etc. set up by another cookie they got somewhere else.
I have the cookies set
{
SetCookie("contact",$contact,time() 36000);
SetCookie("EMAIL",$EMAIL,time() 36000);
SetCookie("PHONE1",$PHONE1,time() 36000);
SetCookie("USTART",$USTART,time() 36000);
}
on the second form, I have
<input name="contact" type="text" value="<?php echo $_COOKIE['contact']; ?>"/>
etc. in the form
I am using <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
and MIME-Version: 1.0rnContent-Type: multipart/mixed;boundary=
So, I thought there could be a way to get rid of those special characters in my emailed form results? If so, I don't have the answer.
All of the information obtained in these files are set for goldmine import (I know there is a way to change the content header, but don't know how.) I have to capture the data from the Web and import it into GoldMine with quite a bit of hassles with using these cookies. I want to use sessions, but they don't work, as pageone.php posts within itself, and doesn't post to pagetwo.php.
Okay, now I am confused...will post this and maybe change the post or add later. Sadly, I really do want to learn php...but my retention rate is about -10%
barbara
Edited by gonewthewind on 05/02/05 09:47 PM (server time).