hello, look at this script :
[font=arial]<?php $field = $_POST['field']; if ($field = 'contact') { header('Location: test.html'); } else { header('Location: test2.html'); } ?>[/font]
i don't know how to verify the value of $field , can you please help me ?
use two equal signs.
= assigns a value == tests equality
your if statement uses one, so all you are doing is changing the value of $field to contact.
Cgraz
yes, it works, thank you very much
i tried what you said(before read in your answer), but i compared two variables, so it didn't work... anyway... i have php 4.2.1 on my server, so i can use instead of "==", "===", is much safer.
thank you again.