try this
<?php
if ($error){
$action="1";
}else{
$action="2";
}
?>
<form method="post" action="<? print"$action"; ?>" name="reg">
</form>
good luck
Mohamed BADR
Senior web/database developer
http://www.egyptmasters.com
http://www.arabiadata.com
010 2050009
----- Original Message -----
From: valentin
To: [email protected]
Sent: Thursday, January 05, 2006 4:49 AM
Subject: [php-list] If statemant problem...
Hello there. I have a script and depending on a variable ( $Errors ) i would
like that the form action to another:
for example if ($errors == 0) the action will be script1.php
and if ($errors != 0) the action will be script2.php
How to do this?
---------------------------------
Yahoo! Photos
Ring in the New Year with Photo Calendars. Add photos, events, holidays,
whatever.
[Non-text portions of this message have been removed]
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
SPONSORED LINKS Php mysql Job postings
------------------------------------------------------------------------------
YAHOO! GROUPS LINKS
a.. Visit your group "php-list" on the web.
b.. To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
------------------------------------------------------------------------------
[Non-text portions of this message have been removed]
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/