Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
The below code should echo when a user clicks on "more". I can't see the issue with the below code, so any assistance will be much appreciated.
if (isset($_POST['more'])){
echo <<<saveNewFactor
<input type="text" size="29">
saveNewFactor;
}
echo <<<saveNewFactor
</br>
<input type="submit" neme="more" value="more" class="forming7">
saveNewFactor;
In your HTML:
<input type="submit" neme="more" value="more" class="forming7">
You have spelt name as neme, change it to:
<input type="submit" name="more" value="more" class="forming7">
Related
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
I have this jquery inside PHP code :
echo '<select id="state" name="state" onchange="document.getElementById(\'state_text_content\').value=this.options[this.selectedIndex].text>
'.$list_state.'
</select>
<input type="hidden" name="state_text" id="state_text_content" value="" />';
why onchange function doesn't update #state_text_content value? thank you.
echo '<select id="state" name="state" onchange="document.getElementById(\'state_text_content\').value=this.options[this.selectedIndex].text">
'.$list_state.'
</select>
<input type="hidden" name="state_text" id="state_text_content" value="" />';
Without seeing everything, I think it's because you have a typo. There is a missing quote at the end of the onchange=""
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 years ago.
Improve this question
I'm uploading several files and I need to process all of them. But they have "unknown" names back in the form and simple foreach is not working.
<input type="file" name="somethingIDontKnow">
<input type="file" name="somethingIDontKnowAgain">
...
I need to know the name parameters of inputs. Can I get them somehow?
Oh, I forgot to add enctype="multipart/form-data" parameter to <form> so I didn't get any files. It's ok now.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
I am trying to echo the following code in html but it deosn't seem to work.
echo '<input type="submit" value="Click!" style="width:100px;" onclick="$('#loading').show();"/>'
Please help
You have overlapping of ' quote inside the JavaScript. You need to escape the single quote like this:
echo '<input type="submit" value="Click!" style="width:100px;" onclick="$(\'#loading\').show();"/>'
// Notice the backslashes? ^ ^
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
First code is fine but textfield give back all php tag
<td><?php print($code_verification);?>
<input type="text" name="packaging_code" id="packaging_code" value="<?=$code_verification?>" />
Change:
value="<?=$code_verification?>"
to:
value="<?php echo $code_verification; ?>"
The first line would work if your server had short_open_tags enabled.
your first code will work if you enable short tags.otherwise you can try below code
<input type="text" name="packaging_code" id="packaging_code" value="<?php echo $code_verification; ?>" />
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
I need to get a reference that went on this page and then send it on the server.
I tried to add this field in my form
<input type="hidden" id="refferer_url" name="refferer_url" value="<?php $_SERVER['HTTP_REFERER'] ?>">
but I get nothing, when I try to go to my page from other pages using link, value of this input is empty.
What's wrong?
<input type="hidden" id="refferer_url" name="refferer_url" value="<?php $_SERVER['HTTP_REFERER'] ?>">
Echo it :
//here
<input type="hidden" id="refferer_url" name="refferer_url" value="<?php echo $_SERVER['HTTP_REFERER'] ?>">