I'd like to ask to, is it possible to have different thank you pages/redirect pages at once?
Ok, i run a forum and I have a support page.
I have created a form.
It has First Name
Last Name
Drop-down menu : Forum Question
General support
So how do I manage form submitter to my forum when they choose Forum Question, and how do I manage forum submitter to FAQ page is he chooses General support?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm not quite sure what you are asking. It is impossbile to redirect to 2 different pages. You can send someone to a thank you page that redirects to another page if this is what you mean.
The other stuff is severly lacking in detail. If you need help you will have to be much more specific.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok, I'm selling services, and they have different prices.
My form looks like this
First Name
Last Name
Order Type (Order 1)
(Order 2)
Is it possible do create a form with will redirect to mysite.com/order1 when Order type is Order 1
And when Order 2 option is chosen redirect to page mysite.com/order2?
Thanks for your help
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Of course the details depend on your form variables but you get the basic concept. If you still need help you'll have to send me the form number (download link) so I can see your form design.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How do I edit it?
$message = stripslashes($message);
mail("maximukraine@mail.ru","Form Submitted at your website",$message,"From: phpFormGenerator");
if($Name) {
header("Refresh: 0;url=http://site.com/forums/");
if($Name1) {
header("Refresh: 0;url=http://site.com");
} else {
header("Refresh: 0;url=http://site.com/phpform/");
}
?><?php
This one doesn't work. I think I messed up with If and else. Could you fix it?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Without knowing what you expect to have populated or not populated, what the form variables are, this is just a guess.
At least what I have provided will only do 1 of 3 things.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Send the link you used to download your form
or
in an email attach the form.html and processor.php files and send them to me
or
send me a link to your form.html and then email the processor.php file to me.
Don't post your code without removing any links, email addresses, usernames, and passwords. It's to easy to forget these things, this is why I recommend the email options.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I know that sourceforge does not handle attachents very well. It's only meant to be a basic messaging mailer. Send an email from your own account to my sourceforge email address. I will reply and then you can send whatever you wish.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'd like to ask to, is it possible to have different thank you pages/redirect pages at once?
Ok, i run a forum and I have a support page.
I have created a form.
It has First Name
Last Name
Drop-down menu : Forum Question
General support
So how do I manage form submitter to my forum when they choose Forum Question, and how do I manage forum submitter to FAQ page is he chooses General support?
I'm not quite sure what you are asking. It is impossbile to redirect to 2 different pages. You can send someone to a thank you page that redirects to another page if this is what you mean.
The other stuff is severly lacking in detail. If you need help you will have to be much more specific.
Ok, I'm selling services, and they have different prices.
My form looks like this
First Name
Last Name
Order Type (Order 1)
(Order 2)
Is it possible do create a form with will redirect to mysite.com/order1 when Order type is Order 1
And when Order 2 option is chosen redirect to page mysite.com/order2?
Thanks for your help
Easy, you may have a redirect section of your form that looks like this:
header("Refresh: 0;url=http://www.url.com/orderform/orderthankyou.php");
What you need is an if statement around the redirect.
if($order1) {
header("Refresh: 0;url=http://www.url.com/orderform/orderthankyou1.php");
} else {
header("Refresh: 0;url=http://www.url.com/orderform/orderthankyou2.php");
}
Of course the details depend on your form variables but you get the basic concept. If you still need help you'll have to send me the form number (download link) so I can see your form design.
Here's part of my script
$message = stripslashes($message);
mail("mail@mail.ru","Form Submitted at your website",$message,"From: phpFormGenerator");
header("Refresh: 0;url=http://site.com/forums/");
?><?php
How do I edit it?
$message = stripslashes($message);
mail("maximukraine@mail.ru","Form Submitted at your website",$message,"From: phpFormGenerator");
if($Name) {
header("Refresh: 0;url=http://site.com/forums/");
if($Name1) {
header("Refresh: 0;url=http://site.com");
} else {
header("Refresh: 0;url=http://site.com/phpform/");
}
?><?php
This one doesn't work. I think I messed up with If and else. Could you fix it?
This is difficult not knowing what the rest of the file looks like but here goes;
if($Name) {
header("Refresh: 0;url=http://site.com/forums/");
if($Name1) {
header("Refresh: 0;url=http://site.com");
} else {
header("Refresh: 0;url=http://site.com/phpform/");
}
Change to:
if(($Name)&&($Name1=="")) {
header("Refresh: 0;url=http://site.com/forums/");
}
else if(($Name1)&&($Name=="")) {
header("Refresh: 0;url=http://site.com");
}
else {
header("Refresh: 0;url=http://site.com/phpform/");
}
Without knowing what you expect to have populated or not populated, what the form variables are, this is just a guess.
At least what I have provided will only do 1 of 3 things.
Have 6 options on my form, and I need different page for any of them.
Ok, could you help me.
Here are the options
Trial
Starter
Bronze
Silver
Golden
Platinum
Combo
And the URLs are
http://mysite.com/Trial
http://mysite.com/Starter
http://mysite.com/Bronze
http://mysite.com/Silver
http://mysite.com/Golden
http://mysite.com/Platinum
http://mysite.com/Combo
How this look like? Could you show me at least one-two examples based on info I gave. Thanks a lot!
I already gave you an example. In order for me to provide more detail I need to see the processor code.
Please help me so I want bother you anymore. THANKS
Have 6 options on my form, and I need different page for any of them.
Ok, could you help me.
Here are the options
Trial
Starter
Bronze
Silver
Golden
Platinum
Combo
And the URLs are
http://mysite.com/Trial
http://mysite.com/Starter
http://mysite.com/Bronze
http://mysite.com/Silver
http://mysite.com/Golden
http://mysite.com/Platinum
http://mysite.com/Combo
How this look like? Could you show me at least one-two examples based on info I gave. Thanks a lot!
What part of code do you need? I can post it
Send the link you used to download your form
or
in an email attach the form.html and processor.php files and send them to me
or
send me a link to your form.html and then email the processor.php file to me.
Don't post your code without removing any links, email addresses, usernames, and passwords. It's to easy to forget these things, this is why I recommend the email options.
I have everything ready to go, but how do I attach?
I know that sourceforge does not handle attachents very well. It's only meant to be a basic messaging mailer. Send an email from your own account to my sourceforge email address. I will reply and then you can send whatever you wish.
I have sent you a message from my gmail account, but it bounced back. Is there any other way to send you a file?
Got it. Give me some time to look at it.