Skip to content

u/Friendly_B

In this archive from Apr 2013 to Aug 2018

13
posts
50
comments
3
media
85
score

If

$field_first_name = $_POST('fname');

then isn't the first half assigning a php name to the information pulled from the html? I'm good at html and css but I switched to WordPress fully about a decade ago. My long-term client just had his college-age daughter make a website and none of it works, so he dropped it in my lap and now here I am learning php to fix his site.

1 points

If

$field_first_name = $_POST('fname');

then isn't the first half assigning a php name to the information pulled from the html? I'm good at html and css but I switched to WordPress fully about a decade ago. My long-term client just had his college-age daughter make a website and none of it works, so he dropped it in my lap and now here I am learning php to fix his site.

1 points

Here are the errors I am receiving:

PHP Notice: Undefined index: fname in /send_form_email.php on line 2

PHP Notice: Undefined index: lname in /send_form_email.php on line 3

PHP Notice: Undefined index: email in /send_form_email.php on line 4

PHP Notice: Undefined index: phone in /send_form_email.php on line 5

PHP Notice: Undefined index: other_position in /send_form_email.php on line 7

PHP Notice: Undefined index: years in /send_form_email.php on line 8

PHP Notice: Undefined variable: field_name in /send_form_email.php on line 12

______________________________________

I will be honest that I JUST noticed in the error log (as I was typing this) that after making the changes in the code for the first name variable something new happened. The line 2 fname error is now gone, and the changes are very obvious to see in my code.

However the main symptom still exists: the email which I receive as a result of this form comes in empty. The field names exist in the body but the inputted information is blank, with the exception of the drop-down menus. I must say, even after noticing that the fname error is no longer occurring the fname field entry still comes up blank.

Am I missing something obvious?

1 points

It is placed so that the blue field (where the pole would be located) is facing to the front. It's no different than being on the other side of a flag than you are used to when it is moving forward in a parade.

To get the effect you are thinking of, we would need to sew a flag to the backside of another flag when they are moving forward. It would then become disrespectful to the flag and country, because the pole would be hooked to the stripes only while the stars and blue field hung down limp.

2 points

That does help, it helps a lot.

It's like the missing piece. I build nice pretty simple sites with html and css because I'm a pen and ink illustrator, but this client is just an occasional client who comes around to have quick and dirty wordpress sites bashed out. Setting them up is easy, but in this case I'm taking over for another dev who had this paid theme and I'm just starting to understand php. This is probably a scenario which will repeat so knowing how to make sure my css changes affect the actual page is paramount!

Thanks. I'm going to print that hierarchy out and stick it on the wall.

2 points

Yeah, it's like a spiderweb. There's nothing to grab onto, it's all just little call up documents. Nuts.

So say I can drop a widget into the page in the right place (got it last night) but I want to disable the css formatting for that specific div box.

How do I change the div tags? Am I going to isolate a php document and remove/replace an if/than statement? I'm an illustrator, I don't know how I keep getting these jobs.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.