I have a couple accounts through godaddy.com and they can't tech support it because it's a custom script. But on one account (i'm assuming its running php4) the script works fine, on the other account (running php5) it doesn't work hardly at all. What happens, is the information is emailed successfully, however, the information that the browser inputed does not POST to the server and the email contains the fields, but the answers are completely blank.
I also notice that no matter what I put for the email, it always errors out and says it's invalid (another suspicion). I modified the php.ini file to be the exact same as that of the other account (just switching one thing that was "off" to "on") and the global.inc.php file is the exact same as well.
Please help if you can! Thanks!!!!
Here is the script from the process.php page: - <?php
-
include("global.inc.php");
-
$errors=0;
-
$error="The following errors occured while processing your form input.<ul>";
-
pt_register('POST','name');
-
pt_register('POST','phone');
-
pt_register('POST','phoneeve');
-
pt_register('POST','time');
-
pt_register('POST','city');
-
pt_register('POST','state');
-
pt_register('POST','Email');
-
pt_register('POST','info');
-
-
if(!eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*" ."@"."([a-z0-9]+([\.-][a-z0-9]+)*)+"."\\.[a-z]{2,}"."$",$Email)){
-
$error.="<li>Invalid email address entered<p><a href=javascript:history.back()>Go Back</a>";
-
$errors=1;
-
}
-
if($errors==1) echo $error;
-
else{
-
-
$where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF),"/"));
-
$message="Name: ".$name."
-
Day Phone: ".$phone."
-
Evening Phone: ".$phoneeve."
-
Convient time to call is: ".$time."
-
City: ".$city."
-
State: ".$state."
-
Email: ".$email."
-
More Info: ".$Info."
-
";
-
$message = stripslashes($message);
-
mail("myemailaddress@yahoo.com","Free Life Stratgey Submittal",$message,"Free Life Stratgey Submittal");
-
?>
3 2330 Markus 6,050
Recognized Expert Expert
I have a couple accounts through godaddy.com and they can't tech support it because it's a custom script. But on one account (i'm assuming its running php4) the script works fine, on the other account (running php5) it doesn't work hardly at all. What happens, is the information is emailed successfully, however, the information that the browser inputed does not POST to the server and the email contains the fields, but the answers are completely blank.
I also notice that no matter what I put for the email, it always errors out and says it's invalid (another suspicion). I modified the php.ini file to be the exact same as that of the other account (just switching one thing that was "off" to "on") and the global.inc.php file is the exact same as well.
Please help if you can! Thanks!!!!
Here is the script from the process.php page: - <?php
-
include("global.inc.php");
-
$errors=0;
-
$error="The following errors occured while processing your form input.<ul>";
-
pt_register('POST','name');
-
pt_register('POST','phone');
-
pt_register('POST','phoneeve');
-
pt_register('POST','time');
-
pt_register('POST','city');
-
pt_register('POST','state');
-
pt_register('POST','Email');
-
pt_register('POST','info');
-
-
if(!eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*" ."@"."([a-z0-9]+([\.-][a-z0-9]+)*)+"."\\.[a-z]{2,}"."$",$Email)){
-
$error.="<li>Invalid email address entered<p><a href=javascript:history.back()>Go Back</a>";
-
$errors=1;
-
}
-
if($errors==1) echo $error;
-
else{
-
-
$where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF),"/"));
-
$message="Name: ".$name."
-
Day Phone: ".$phone."
-
Evening Phone: ".$phoneeve."
-
Convient time to call is: ".$time."
-
City: ".$city."
-
State: ".$state."
-
Email: ".$email."
-
More Info: ".$Info."
-
";
-
$message = stripslashes($message);
-
mail("myemailaddress@yahoo.com","Free Life Stratgey Submittal",$message,"Free Life Stratgey Submittal");
-
?>
Have you tried changing those pt_register fields to POST?
[php]
pt_register('PO ST', 'info');
#becomes
$info = $_POST['info'];
[/php]
That was the right way to POSt but the rest of the script was incorrect. I ended up finding a script online to get the job done. thank you though!
Markus 6,050
Recognized Expert Expert
That was the right way to POSt but the rest of the script was incorrect. I ended up finding a script online to get the job done. thank you though!
Ok mate!
Catch ya later
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Tim Tyler |
last post by:
I'm sure this is a FAQ - but I could not find a coherent statement of the
answer:
Some of my clients want PHP4.
Other ones want PHP5.
Can I run both PHP4 and PHP5 under the same instance of Apache -
both on port 80 - using different file extensions to distinguish
between them?
--
|
by: Dave Pham |
last post by:
I just cleaned my comp, and I am trying to re-config my webserver...
I am trying to setup apache 2 so it runs both php4 and php5, I also
have two instances of mysql running. I know this can be done cos it
had work before, but after this incident its not longer...
These are my directories for each:
Apache: D:\ServerRoot\Apache\Apache2
MySQL1: D:\ServerRoot\mysql1
|
by: dk_sz |
last post by:
Is it just me... Or is PHP5 XML very limited?
Or am I missing something very obvious?
Any way to use PHP4 Dom XML in PHP5?
Does anyone know why support for it was dropped?
I have following code I need to have replaced:
PHP4
|
by: Kevin |
last post by:
Hi all,
I've got a PHP4 app that I developed which I'm trying to get to run on a
PHP5 server. Everything works great, except for one thing.
There's a particular routine that creates an original object, then copies
it. (The object constructor gets some meta information from the database, so
I copy it for performance reasons). The routine then modifies the copies.
PHP5 copies by reference by default, so this doesn't work--- I'm not
|
by: sinister |
last post by:
I'm starting a database/web interface project, using Linux and postgresql.
I've programmed in PHP4 in the past, and for this new project am unsure
whether to use PHP4 or PHP5.
My main concerns are stability and security.
What are the pros/cons/issues for PHP4/PHP5 with apache (either 1.3 or 2)?
TIA,
| |
by: Stefan Huber |
last post by:
Hi
I've got a really strange problem, and can't find out why it's not
working as intended.
in order to use php4 and 5 together on a webserver and the requirement
for running as different users, I use suexec and a wrapper script for
php files. to make it a bit clearer, i'll post the different snippets:
httpd.conf:
|
by: Drazen Gemic |
last post by:
How long will PHP4 be supported ? When is PHP4 end of life scheduled ?
DG
|
by: xhe |
last post by:
I have just upgraded my php version form php4 to php5. and I met this
problem, and don't know if you know the solution.
My site was written in PHP4, and most parts can be running smoothly in
PHP5, only that in old version, I can use $row to access
the data in database directly, no need to put double quote around
fieldname. BUT in PHP5, this is wrong, I got error message "undefined
constant". I know this is because PHP5 see the fieldname...
|
by: FFMG |
last post by:
Hi,
I am slowly moving my code to php5.
But I would like to make it backward compatible in case something bad
happens, (and to make sure I understand what the changes are).
The way the constructors work seem to have changed quite a bit and I am
not getting the same behavior across the versions.
// Some simple code/
|
by: jmark |
last post by:
I am currently running php 4.4.7 in windows xp and apache 2.
If I enter php in command line. I get the following error
The application has failed to start because php5ts.dll was not found"
I have installed both php5 and php 4.4.7 but I am not running php5 as
I have all the entries in httpd.conf related to php5 commented out. I
also do not have anything pointing to php5 in my environment path
if I type
php -i
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |