Jump to content

Recommended Posts

Hey, I am using php to print out the html code to make a form..

It appears, but when I click the button nothing ever happens, doesn't go to my "action" page at all

copied html code:

<form action="index.php" method="post">
<input type="text" name="text1" id="text1" />
<input name="asd" type="text" maxlength="50" />
<input name="jhb" type="checkbox" value="" />
<input name="hjblk" type="checkbox" value="" />
<input name="lin" type="button" value="hjkkjk" />
</form>

 

 

the file this text is on is NOT index.php, it IS test.html

 

I can't see what is wrong with this!!! :shrug::confused: :confused: :confused::wtf:

 

anyone see anything?

 

-I'm using XAMPP, and firefox..

 

EDIT: ahhh type was not "submit"... stupid thing..

Link to comment
https://forums.phpfreaks.com/topic/182215-html-form-not-working/
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.