Jump to content

simple echo


jjmusicpro

Recommended Posts

I cant seem to get this working right, it just redirects to itself.

 

I wanted it to go to the thankyoupage.

 

	 echo "<b>No locations found for your zip.</b><br>Please fill out the form below so we can help your further.<p>";
 echo "<fieldset><form method=\"POST\" action=\"http://fp1.formmail.com/cgi-bin/fm192\">
<input type=\"hidden\" name=\"redirect\" value=\"http://www.mysite/thankyou.html\">
First Name:<input type=\"text\" name=\"Customer_First_Name\"><br>Last Name:<input type=\"text\" name=\"Customer_Last_Name\"><br><input type=\"submit\" value=\"Submit your Information\"></form>
</fieldset>";

Link to comment
Share on other sites

The code could be made easier to read by using single quotes:

 

echo '<fieldset><form method="POST" action="http://fp1.formmail.com/cgi-bin/fm192">
<input type="hidden" name="redirect" value="http://www.mysite/thankyou.html">
First Name:<input type="text" name="Customer_First_Name">
<br>Last Name:<input type="text" name="Customer_Last_Name">
<br><input type="submit" value="Submit your Information"></form>
</fieldset>';

 

By using the single quotes on the outside instead of double quotes you shouldn't have to escape all of the double quotes contained within...  Just wanted to mention that...

 

Babs

Link to comment
Share on other sites

The code could be made easier to read by using single quotes:

 

echo '<fieldset><form method="POST" action="http://fp1.formmail.com/cgi-bin/fm192">
<input type="hidden" name="redirect" value="http://www.mysite/thankyou.html">
First Name:<input type="text" name="Customer_First_Name">
<br>Last Name:<input type="text" name="Customer_Last_Name">
<br><input type="submit" value="Submit your Information"></form>
</fieldset>';

 

By using the single quotes on the outside instead of double quotes you shouldn't have to escape all of the double quotes contained within...  Just wanted to mention that...

 

Babs

 

For some reason when i just put what i have, and click submit, it just goes back to index.html.

 

It shoul dbe going to thankyou.html

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.