2

I have a parse error unexpected = here specifically at action=.

<form action='<?php echo $url?resendpassword=1&send=1;?>' method='post'>
1
  • wrap in quotes <form action='<?php echo "$url?resendpassword=1&send=1";?>' method='post'> Commented Jun 28, 2016 at 8:30

3 Answers 3

1

Try writing it like this;

<form action='<?php echo $url . "?resendpassword=1&send=1"; ?>' method='post'>

Or

<form action='<?php echo $url;?>?resendpassword=1&send=1' method='post'>
Sign up to request clarification or add additional context in comments.

Comments

0

The other suggestions here are fine, but I think this may be even better:

<form action='<?php echo $url ?>?resendpassword=1&send=1;' method='post'>

Comments

0

You need to concatenate URL first and then don't forget to escape (& is special character in HTML so without escaping it would produce incorrect HTML):

<form action='<?php echo htmlspecialchars("$url?resendpassword=1&send=1"); ?>' method='post'>

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.