Form Help Please!
- Started
- Last post
- 36 Responses
- spraycan0
hi osfa just add this on line 45:
if(isset($_POST['submit'])&&$err... == ''){
header("Location:submitted.php") ;
}this will re direct to a file called submitted.php, submitted.php can say "thank you " or whatever
- OSFA0
Thanks spray!!! Really appreciate it!
So, the html code for the form and its PHP are there? Can I plug this into my existing page?
- spraycan0
on line 34 dont forget to change this so the user input is emailed:
$to='your email adress here';on line 65:
<form action="formulaire.php" method="post" id="main_form">
this is if you want to change the name of the file you also must change the action parameter to its name (always keep the .php extension)
- gramme0
HAHAHAHA
- OSFA0
Ok, back to this stupid form, still can't make it work and it is due today. I keep trying tutorials and samples, but they don't work with what I have and need. Can't be this complicated.... :(
- OSFA0
Sorry to bother again, but I'm still trying to learn this crap. I tried to test it and it didn't work, can I just copy/paste into a new DW page and test it by itself?
- spraycan0
i dont use DW (and to test it locally you need to param your php local installation) it's easier if you put it on the server where php is enable and dont forget to make the change on line 34
- OSFA0
1. im using DW
2. "(and to test it locally you need to param your php local installation)" whaaat??
3. "put it on the server where php is enable" - ??
sorry...
- rson0
where is your code
- vaxorcist0
just do it on the server...
If you have to do it locally, download and install XAMPP or MAMPP
you can't test a server-side response inside dreamweaver, you'll have to direct your web browser to
http://localhost/mysite/page.php…
or whatever... so rather than go through craziness, I suggest you do it on the server...
- spraycan0
what kind of form validation you want? php or Js .
- ceiling_cat0
If that's all you need, can't you just do it in html?
- OSFA0
sorry for being a pain in the arse guys, but I have no idea how to do this shit. I've spent more than 4 hours trying to copy/paste and guess how to make it work, but nothing! Wish I could just give up...I posted the PHP page on my hosting like any other web page, and when I test it, I get half of the page full of code and the bottom half with a form that doesn't work.
Spray, I know your form works, it's just me...
- sleepyfatso0
hey, I am super slow at that stuff too, but kirupa.com has some forms that are super easy to understand. One of these 2 will help for sure...
- OSFA0
It's supposed to be a register form, so I can't have all the info pop open a new email so that the user sends it then... It needs to be done on the same page, input info, click submit, and info is sent to email.
- vaxorcist0
You see all your PHP code, it isn't interpreted?
Check to see if your code looks like:
form action="file.php" method="post"
NOT
form action="file" method="post"if you list form action="file" then you'll have to do some Apache config and/or htaccess tweeking....
- sleepyfatso0
yeah yo. if you'd like, email me your pages and I will test em/make em work (if I can). I won't be able to do it until tomorrow Canada time though if that works for you. I HATE having php shit not work, so I would be happy to help you out.
sleepy