473,387 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

vbscript

can someone please tell me what the PHP equivelent to this
vbsript is

Response.Redirect "acknowledge.html

Thanks.

Jul 17 '05 #1
8 1582
Desmond wrote:
can someone please tell me what the PHP equivelent to this
vbsript is

Response.Redirect "acknowledge.html


header('Location: acknowledge.html');
exit;

--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com
Jul 17 '05 #2
<?php
header('Location: http://your.server.com/path/acknowledge.html');
?>

I've put the absolute URL because not doing so violates the HTTP
standard.

Jul 17 '05 #3
Thanks it is redirecting now but I am not getting my emails sent to me.
it's only 10 lines
of PHP which I am new to.

the site is http://www.des-otoole.co.uk/Email-3.html and the code in
php is

<?php
$to = $_POST["to"];
$from = $_POST["from"];
$sss = $_POST["subject"];
$mmm = $_POST["message"];
$headers = "From: $from\r\n";
$success = mail($to, $sss, $mmm, $headers);
header('Location: acknowledge.html');
exit;
?>

any sugestions.

Desmond

Jul 17 '05 #4
"Desmond" wrote:
Thanks it is redirecting now but I am not getting my emails sent to me.
it's only 10 lines
of PHP which I am new to.

the site is http://www.des-otoole.co.uk/Email-3.html and the code in
php is

<?php
$to = $_POST["to"];
$from = $_POST["from"];
$sss = $_POST["subject"];
$mmm = $_POST["message"];
$headers = "From: $from\r\n";
$success = mail($to, $sss, $mmm, $headers);
header('Location: acknowledge.html');
exit;
?>

any sugestions.

Desmond


/bangs head on desk/

Congratulations, you've just created your first spam engine. Now just sit
back and watch your site's bandwidth go through the roof as spammers all
over the world use your handy script to tell everyone about their viagra
pills and penis extension kits.

Of course, your web hosting company will probably get a bit annoyed after a
while. I'd say you have about 48 hours left before they pull the plug on
your website.

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Jul 17 '05 #5
Desmond wrote:
Thanks it is redirecting now but I am not getting my emails sent to me.
it's only 10 lines
of PHP which I am new to.

the site is http://www.des-otoole.co.uk/Email-3.html and the code in
php is

<?php
$to = $_POST["to"];
$from = $_POST["from"];
$sss = $_POST["subject"];
$mmm = $_POST["message"];
$headers = "From: $from\r\n";
$success = mail($to, $sss, $mmm, $headers);
header('Location: acknowledge.html');
exit;
?>

any sugestions.


Since you're on AOL, AOL maybe requiring that the "From" line and where
the mail looks like it's coming from have the same domain. Try adding
the 5th parameter to the mail() function in the form:

$success = mail($to,$sss,$mmm,$headers,'-f '.$_POST['from'];

You should check that the mail() function actually succeeded by
checking the return code:

if ($success) header (...)
else echo "Something is wrong with mail";

Also, if you are always sending this email to yourself, you don't have
to include the "To" address in your form. Just hardcode it in your PHP
code.

Ken

Jul 17 '05 #6


Philip Ronan wrote:
/bangs head on desk/

Congratulations, you've just created your first spam engine. Now just sit
back and watch your site's bandwidth go through the roof as spammers all
over the world use your handy script to tell everyone about their viagra
pills and penis extension kits.

Of course, your web hosting company will probably get a bit annoyed after a
while. I'd say you have about 48 hours left before they pull the plug on
your website.


Actually, if you read the HTML code, you will see that he's hardcoded
the "To" address in the form, so everything will eventually go to him,
once the problems are solved.

Ken

Jul 17 '05 #7
Ken Robinson <ke******@rbnsn.com> wrote:
Actually, if you read the HTML code, you will see that he's hardcoded
the "To" address in the form, so everything will eventually go to him,
once the problems are solved.


Sure, you can always trust spammers to only use the form that was
originally indended to post to the script...

Jul 17 '05 #8


Daniel Tryba wrote:
Ken Robinson <ke******@rbnsn.com> wrote:
Actually, if you read the HTML code, you will see that he's hardcoded
the "To" address in the form, so everything will eventually go to him,
once the problems are solved.


Sure, you can always trust spammers to only use the form that was
originally indended to post to the script...


That's one of the reasons I suggested that he hardcode the "To:"
address in his PHP code.

Ken

Jul 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: John Davis | last post by:
When I create new documents in Dreamweaver, there are several choices for ASP creation: ASP JavaScript: run at client side?? ASP VBScript: run at server side?? ASP.NET C# ASP.NET VB I don't...
29
by: Christopher Brandsdal | last post by:
If I have a .ASP page that runs JScript code - is it possible to include an ..ASP page that runs VBscript???
20
by: Harag | last post by:
Hi All. I'm stating out doing some web developing. I was wondering which of the server side languages should I concentrate on and learn. I Know CSS, HTML, T-SQL I can look at the client...
16
by: Mike Schinkel | last post by:
Does anyone know if there are bugs in VBScript's GetRef()? I'm using VBScript Version 5.6.8515 on Win2003Server w/ASP. Sometimes it returns an object that VarType() says is a vbObject. Other...
5
by: gpence | last post by:
!!! Newbie question warning !!! I am somewhat familiar with javascript's ability to "access" the browser's favorites list -- for example, using window.home() will take you to the default URL --...
4
by: chris.dunigan | last post by:
I'm looking for an example of how to execute an existing DTS­ package from an ASP (VB)script and would appreciate any and all response. ­I don't even know if it's possible Thanks - Chuck...
2
by: Frank | last post by:
Can I do this? I add a session var in C# and ultimatly want to pass it into a vbscript client side activeX control. This is what I have so far but get " Object Required:'name2' " error. Can...
7
by: skeddy | last post by:
In a nutshell, I'm trying to dynamically create a select box with ResultSet code in vbscript and then need to be able to access the value of that select box later with a Save button. I've got...
10
by: Shadow Lynx | last post by:
That subject packs a whallop, so let me explain in better detail what's happening and how it relates to ASPX pages... In a nutshell, if the first <script /on a page is of type "text/vbscript",...
6
by: rishabhshrivastava | last post by:
Hello All, I am using ASP.NET 2.0 and I am experiencing a problem using vbscript that is this script on client side is preventing the postback of my controls. I have a dropdownlist which is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.